How to Authenticate API with an XAPP Token using PHP?
Get the solution ↓↓↓Solution:
You could just google 'php curl'. But anyways, here we go:
<?php
$postdata = array();
$postdata['client_id'] = CLIENT_ID;
$postdata['client_secret'] = CLIENT_SECRET;
$cc = curl_init();
curl_setopt($cc,CURLOPT_POST,1); // set method to POST
curl_setopt($cc,CURLOPT_RETURNTRANSFER,1); // get the data returned
curl_setopt($cc,CURLOPT_URL,"https://api.artsy.net/api/tokens/xapp_token");
curl_setopt($cc,CURLOPT_POSTFIELDS,$postdata);
$result = curl_exec($cc);
echo $result;
?>
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: git was not found in your path, skipping source download
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.