skip to Main Content

Php Curl with shopify trouble in output

So basically I just grab a code from here and test run it. This is the code: <?php $url = "https://230******************dc20:b0817***************008@tr*********s.myshopify.com/admin/customers.json"; $shopcurl = curl_init(); curl_setopt($shopcurl, CURLOPT_URL, $url); curl_setopt($shopcurl, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($shopcurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($shopcurl, CURLOPT_VERBOSE, 0); curl_setopt($shopcurl, CURLOPT_HEADER, 1);…

VIEW QUESTION

Upload/Send file to Facebook via Send Api Reference – Facebook api

Here is the curl From Facebook Docs to Upload a file to their servers for sending to the specified user: curl -F recipient='{"id":"USER_ID"}' -F message='{"attachment":{"type":"file", "payload":{}}}' -F filedata=@/tmp/receipt.pdf "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" curl -F 'recipient={"id":"USER_ID"}' -F 'message={"attachment":{"type":"audio", "payload":{}}}' -F 'filedata=@/tmp/clip.mp3;type=audio/mp3' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" I am…

VIEW QUESTION
Back To Top
Search