Skip to content

Generate RDT Token for the restricted APIs #202

Answered by norberttech
hardikradixweb asked this question in Q&A
Discussion options

You must be logged in to vote

Please find a working example of accessing buyerInfo and shippingAddress below:

<?php

use AmazonPHP\SellingPartner\AccessToken;
use AmazonPHP\SellingPartner\Model\Tokens\RestrictedResource;
use AmazonPHP\SellingPartner\Regions;
use AmazonPHP\SellingPartner\SellingPartnerSDK;
use Buzz\Client\Curl;
use AmazonPHP\SellingPartner\Configuration;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Nyholm\Psr7\Factory\Psr17Factory;
use AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenRequest;

require_once __DIR__ . '/vendor/autoload.php';

$factory = new Psr17Factory();
$client = new Curl($factory);

$sellerId = 'xxx';
$sellerRefreshToken = 'xxx';

$clientId = 'xxx';
$clien…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
9 replies
@hardikradixweb
Comment options

@norberttech
Comment options

@hardikradixweb
Comment options

@hardikradixweb
Comment options

@hardikradixweb
Comment options

Comment options

You must be logged in to vote
3 replies
@hardikradixweb
Comment options

@chrism-delmarfans
Comment options

@nhtahoe
Comment options

Answer selected by hardikradixweb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants