REST API, send Sugarcrm data to an other application

hi everyone, 

I'm new on sugraCRM,

i need to send data via URL to external application to send phone number of contact, can you give me simple example to coding this need,

the curl : www.url.com/api/callinglistaddrecord.json?dbid=1&number=1888140000&custom=monumberunique1234"

and i use this array to the authentication 

$parameters = array(
    'user_name' => 'user',
    'password' => 'password',
    );
Thank's
SugarCRM version 7.8
  • I use this and it s work :

    $url = "http://url/api/callinglistaddrecord.json?custom=created_by_CRM";
    $curl = curl_init($url);
    $header = array("Accept: application/json");
    curl_setopt($curl, CURLOPT_USERPWD, "user:pw");
    curl_setopt_array($curl);
    $result = curl_exec($curl);