title: Requesting a POST METHOD to a url
body: <p>Please, i am trying to build an Airtime application, so i am ask to.
  (1) Send airtime by making a HTTP POST request to one of the following endpoints:
  Live: <a href="https://api.africastalking.com/version1/airtime/send" rel="nofollow noreferrer">https://api.africastalking.com/version1/airtime/send</a>
  Sandbox: <a href="https://api.sandbox.africastalking.com/version1/airtime/send" rel="nofollow noreferrer">https://api.sandbox.africastalking.com/version1/airtime/send</a></p>
  <p>Request parameters:
  (a) username - String,
  (b)recipients String
  A url encoded json list of Recipients, the format of this string is:
  [{&quot;phoneNumber&quot;:&quot;+254711XXXYYY&quot;,&quot;amount&quot;:&quot;KES X&quot;}]
  Recipient is a Map with the following parameters:
  phoneNumber String Required: The phone number that will be topped up in international format (e.g +234811222333).
  amount String Required: The value of airtime to send together with the currency code. The format of this string is: (3-digit Currency Code)(space)(Decimal Value) e.g KES 100.50.</p>
  <p>&quot;here is their demo code&quot;</p>
  <pre><code>&lt;?php
  require 'vendor/autoload.php';
  use AfricasTalking\SDK\AfricasTalking;
  
  // Set your app credentials
  $username = &quot;MyAppUsername&quot;;
  $apikey   = &quot;MyAppAPIKey&quot;;
  
  // Initialize the SDK
  $AT       = new AfricasTalking($username, $apiKey);
  
  // Get the airtime service
  $airtime  = $AT-&gt;airtime();
  
  // Set the phone number, currency code and amount in the format below
  $recipients = [[
      &quot;phoneNumber&quot;  =&gt; &quot;MyPhoneNumber&quot;,
      &quot;currencyCode&quot; =&gt; &quot;KES&quot;,
      &quot;amount&quot;       =&gt; 100
  ]];
  
  try {
      // That's it, hit send and we'll take care of the rest
      $results = $airtime-&gt;send([
          &quot;recipients&quot; =&gt; $recipients
      ]);
  
      print_r($results);
  } catch(Exception $e) {
      echo &quot;Error: &quot;.$e-&gt;getMessage();
  }
  ?&gt;
  </code></pre>
  <p>Please i don't<a href="https://i.stack.imgur.com/O1GPn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O1GPn.png" alt="enter image description here" /></a> understand how to write the POST requset</p>