Skip to content

Instantly share code, notes, and snippets.

View paliarush's full-sized avatar

Alex Paliarush paliarush

View GitHub Profile
@paliarush
paliarush / OauthClient.php
Last active October 19, 2022 11:37 — forked from anupdugar/OauthClient.php
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;