Fabric Digits oauth authentication in PHP/Lravel -
using digits api calling oauth verification getting wrong response sdk.
below code in curl script.
$curl = curl_init(); curl_setopt($curl,curlopt_url, $xauthserviceprovider); curl_setopt($curl,curlopt_httpheader, array( 'content-length: 0', 'content-type: application/json', 'authorization: '.$xverifycredentialsauthorization, )); curl_setopt($curl, curlopt_returntransfer, true); $content = curl_exec($curl); $info = curl_getinfo($curl); curl_close($curl); $obj = json_decode($content, true);
response
{"url":"https:\/\/api.digits.com\/1.1\/sdk\/account.json","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":1,"redirect_count":0,"total_time":0.375,"namelookup_time":0.016,"connect_time":0.234,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"192.44.68.8","certinfo":[],"primary_port":443,"local_ip":"10.0.1.28","local_port":55193}
-$xauthserviceprovider
"https://api.digits.com/1.1/sdk/account.json"
-$xverifycredentialsauthorization
auth response returned digits api.
please me, sdk working fine in ios , android apps , server side not working.
Comments
Post a Comment