Skip to content

Generate RDT Token for the restricted APIs #202

Answered by norberttech
hardikradixweb asked this question in Q&A

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

You must be logged in to vote
9 replies
@hardikradixweb

@norberttech

@hardikradixweb

@hardikradixweb

@hardikradixweb

You must be logged in to vote
3 replies
@hardikradixweb

@chrism-delmarfans

@nhtahoe

Answer selected by hardikradixweb

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