question

sarumanfumetti avatar image
0 Likes"
sarumanfumetti asked

Migration from APP ID (Client ID) to OAuth

Good morning


I would like to have full details on how to migrate from APP ID (Client ID) to OAuth and use OAuth access tokens to make Shopping API calls.


I currently have a call script of this type


<?php

class ebay{


private $url = 'https://svcs.ebay.com/services/search/FindingService/v1';

private $app_id = "api key"

private $global_id = "EBAY-US"; //e-bay region (eg. EBAY-US)

private $version = '1.0.0'; //version of the API to use

private $format = 'json'; //format of the returned data

private $s_endpoint = "https://open.api.ebay.com/shopping?" ;

public function __construct($app_id, $global_id,$endpoint){

$this->app_id = $app_id;

$this->global_id = $global_id;

$this->endpoint = $endpoint ;

}


function getSingleItemResults ($selectedItemID) {


global $localTimeZone;

global $cellColor;


$retnb = '';


// Construct the GetSingleItem call

$apicallb = $this->endpoint;

$apicallb .= "callname=GetSingleItem";

$apicallb .= "&version=563";

$apicallb .= "&appid=".$this->app_id;

$apicallb .= "&itemid=$selectedItemID";

$apicallb .= "&responseencoding=xml";

$apicallb .= "&includeselector=Details,ShippingCosts";


// Load the call and capture the document returned by eBay API

return simplexml_load_file($apicallb);

//echo $apicallb;

//return json_decode(file_get_contents($apicallb), true);

}

}


What do i need to change?


Thank you, see you soon


Gianluigi

oauth
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sagar_developersupport avatar image
1 Like"
sagar_developersupport answered

Hi @sarumanfumetti,

You need to use OAuth application access token using the X-EBAY-API-IAF-TOKEN HTTP header instead of this header X-EBAY-API-APP-ID.

Now you need to pass the OAuth application access token instead of AppId.

Ref:-
https://developer.ebay.com/Devzone/shopping/docs/Concepts/ShoppingAPI_FormatOverview.html

Best regards ,
eBay Developer Support

· 2
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Unfortunately I still haven't found a php developer who can do this APP Id to Oauth migration on my page.

So from 1 July all ebay products will disappear from my website. :-(

There is not even an ebay tool capable of provisionally replacing my API, as the ebay kit editor or the custom banner with internal search once did.

0 Likes 0 ·

Hi @sarumanfumetti,

You need to use OAuth application access token using the X-EBAY-API-IAF-TOKEN HTTP header instead of this header X-EBAY-API-APP-ID.

Now you need to pass the OAuth application access token instead of AppId.

Ref:-

https://developer.ebay.com/Devzone/shopping/docs/Concepts/ShoppingAPI_FormatOverview.html.great people me

Best regards ,

eBay Developer Support


Thank you so much for your great information, It is too useful for me.

0 Likes 0 ·
sarumanfumetti avatar image
0 Likes"
sarumanfumetti answered

Unfortunately I still haven't found a php developer who can do this APP Id to Oauth migration on my page.

So from 1 July all ebay products will disappear from my website. :-(

There is not even an ebay tool capable of provisionally replacing my API, as the ebay kit editor or the custom banner with internal search once did.

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

skuty-4 avatar image
0 Likes"
skuty-4 answered

The App Identity API is not available in the Python 3 runtime, so if your Python 3 apps need to assert their identity when sending requests to other App Engine apps, you can use Open ID Connect (OIDC) ID tokens that are issued and decoded by Google's OAuth 2.0 APIs.


AdvancedMD

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.