title: Convert curl request to AFNetworking 2.0
body: <p>I am working with the Balanced Payments API and in their example code they make a curl request as such:</p>
  
  <pre><code>curl https://api.balancedpayments.com/v1/customers \
       -u ak-test-PE0kAimMqYDGzebPIHUzYwuLUM86yCxP: \
       -X POST
  </code></pre>
  
  <p>I am not sure how to pass the -u value in the AFNetworking 2.0 library.</p>
  
  <p>Reference: <a href="https://docs.balancedpayments.com/current/api?language=bash#creating-a-customer" rel="nofollow">Balanced Payments API</a></p>
  
  <blockquote>
    <p>To authenticate with Balanced, you will need the API key secret provided from the dashboard. You have to use http basic access authentication. Your key has to be set as the username. A password is not required for simplicity.</p>
  </blockquote>