Problem with PHP code for private Vendor Endpoints...
I need another set of eyes... or even someone more experienced than I am!!!
so here is my code for getting the private vendor endpoint:
[quote] curl_setopt($ch, CURLOPT_URL, $dm_BungieNet.'/Platform/Destiny/1/MyAccount/Character/'.$charID.'/Vendor/1527174714/?definitions=true');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('x-api-key:'.$apiKey.',x-csrf:'.$dm_bungled));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_txt);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_txt);
$dm_json = curl_exec($ch);
I am getting a must loggin error
I know I have a good bungled, I'm grabbing it right before I try and get the endpoint. if I just take the endpoint and type it in, I get a "need to login error".
I am not experienced in this coding, however I did notice that your URL where you set the definitions to '?definitions=true' does have a forward slash before it. I believe you set the variable directly after the URL and not after a slash.
Your role as a moderator enables you immediately ban this user from messaging (bypassing the report queue) if you select a punishment.
7 Day Ban
7 Day Ban
30 Day Ban
Permanent Ban
This site uses cookies to provide you with the best possible user experience. By clicking 'Accept', you agree to the policies documented at Cookie Policy and Privacy Policy.
Accept
This site uses cookies to provide you with the best possible user experience. By continuing to use this site, you agree to the policies documented at Cookie Policy and Privacy Policy.
close
Our policies have recently changed. By clicking 'Accept', you agree to the updated policies documented at Cookie Policy and Privacy Policy.
Accept
Our policies have recently changed. By continuing to use this site, you agree to the updated policies documented at Cookie Policy and Privacy Policy.