Skip to content

Instantly share code, notes, and snippets.

View anupdugar's full-sized avatar

Anup Dugar anupdugar

View GitHub Profile
@anupdugar
anupdugar / OauthClient.php
Created January 12, 2015 07:11
Scripts to demo Magento 2 Oauth1.a token exchange
<?php
use OAuth\Common\Consumer\Credentials;
use OAuth\Common\Http\Client\ClientInterface;
use OAuth\Common\Http\Exception\TokenResponseException;
use OAuth\Common\Http\Uri\Uri;
use OAuth\Common\Http\Uri\UriInterface;
use OAuth\Common\Storage\TokenStorageInterface;
use OAuth\OAuth1\Service\AbstractService;
use OAuth\OAuth1\Signature\SignatureInterface;