Skip to content

Commit

Permalink
V22.8.1 - 2022-08-11
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfui committed Aug 11, 2022
1 parent b97d951 commit 12c4e13
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/ConstantContact/V3/TokenInfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

// Generated file. Do not edit by hand. Use update.php in project root.

namespace PHPFUI\ConstantContact\V3;

class TokenInfo extends \PHPFUI\ConstantContact\Base
{
public function __construct(\PHPFUI\ConstantContact\Client $client)
{
parent::__construct($client, '/v3/token_info');
}

/**
* Access Token Information
*
* IMPORTANT NOTE: As of March 31, 2022, this POST method is being depreciated.
* To view the scopes associated with an access token, parse the access
* token (JWT) claims.
*
*
* @param \PHPFUI\ConstantContact\Definition\AuthToken $auth_token A JSON request payload containing a valid OAuth2.0 access token.
*/
public function post(\PHPFUI\ConstantContact\Definition\AuthToken $auth_token) : array
{

return $this->doPost(['auth_token' => $auth_token->getData(), ]);
}
}

0 comments on commit 12c4e13

Please sign in to comment.