EBAY API OAUTH REFRESH ove CRUL - RED first keyword inside

Job ID: 32090143

Budget: $10 – $30 USD

Hello,

i try to built a product search on ebay, because the old finding api will expired soon.

I get the products, all fine, but the oauth token expired after 30 min. I need to fix this, becausethat is to high for my skills.

If you could fix this, please make me an offer for it and write first in the answer: "Dennis, ic could fix it", because here are so many bots/spammer

Informations:
https://developer.ebay.com/api-docs/static/make-a-call.html

https://stackoverflow.com/questions/44603838/ebay-oauth-token-and-refresh-tokens

https://stackoverflow.com/questions/69157596/ebay-api-error-authorization-is-throwing-the-following-error-invalid-grant

my script so far:
---------------
$apicall = "https://api.ebay.com/buy/browse/v1/item_summary/search?";
$apicall .= "limit=".$limit;
if($searchterm!='')$apicall .= "&q=".urlencode($searchterm);
if($category!='')$apicall .= "&category_ids=".$category;

$headers = array
(
'Authorization:Bearer XXX',
'Content-Type:application/json',
'X-EBAY-C-MARKETPLACE-ID:EBAY_DE',
'X-EBAY-C-ENDUSERCTX:affiliateCampaignId=<ePNCampaignId>,affiliateReferenceId=<referenceId>'
);


$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, $apicall);
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($connection, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($connection, CURLOPT_HTTPHEADER, $headers);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($connection);
curl_close($connection);

------------
XXX is the oAuth Code from the API Example

THX
Dennis
Related categories: PHP Software Architecture eBay API