Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 9th, 2020 140 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. define('TOKEN_FILE', DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'token_info.json');
  3.  
  4. use AmoCRM\OAuth2\Client\Provider\AmoCRM;
  5.  
  6. include_once __DIR__ . '/vendor/autoload.php';
  7. include_once __DIR__ . '/vendor/amocrm/oauth2-amocrm/src/AmoCRM.php';
  8.  
  9. session_start();
  10. /**
  11.  * Создаем провайдера
  12.  */
  13.  
  14.  
  15.  
  16. $provider = new AmoCRM([
  17.     'clientId' => 'e83d341a-320d-4990-94d4-60389348738e',
  18.     'clientSecret' => 'Ef6iyA4HOQYgNzBvSmqbNgkhp3HypCzgalvVaMqacclgibD0GhtfGxh4ksyPc7fr',
  19.     'redirectUri' => 'gap-academy.ru',
  20. ]);
  21.  
  22.  
  23. $accessToken = $provider->getAccessToken(new League\OAuth2\Client\Grant\AuthorizationCode(), [
  24.     'code' => 'def50200f1ddc0cd7c05c7d85a144c259077a20ff24260dd64e61ad74065c924d386c3826a53cfa31ba210f57e005149d099065ec221f6e6f1be8becd40e608e9c204fcf22d592a3c49b6536623c7b40bc9febae060b4604947e580b9497f3c2ad8b413975c11cd144ccc2d8d186acce86100846ddcde8716b1350447829a77ea2e6f5ce575c6bee81819b3042872bb244f19a0c6aa7ef9029d52169dd882ae31a00660e9733d3d1088a895455ea76066573e36e46ad3c2371082a656e4d880d9bac04858540d26e63ad049452669bc41219326c68e4a0331b638cdc294194b535315279b3561b72aeadc78ef08263fc027a340586f483775b498690aa83e35ae65abcd9145bc09e89c78fb7ca8c82384b7573a4f96cc37d1aa8cfb097e00799f6bc53d537113c36bfa583290fa941dbb717f77ce414d996acd0fb9500457f227286e2287c182c5f9020922336ded6535bd98a8dafce685bc779e3b0d410ecee399f7f6d4a2c5df7add044625e06e068630db41caf0b27a1f94bed0bae8680d36fd868a793b6ba8c486bc015960fe03ff2754192418f4914e78d3feed864f9dfe062ced7eafdcc66198d74af8444df1fd7d53cae790ddfd20985f19310e70d5a3ce4'
  25. ]);
  26. die((string)$accessToken);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top