Skip to content

Commit 12c4e13

Browse files
committed
V22.8.1 - 2022-08-11
1 parent b97d951 commit 12c4e13

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/ConstantContact/V3/TokenInfo.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\V3;
6+
7+
class TokenInfo extends \PHPFUI\ConstantContact\Base
8+
{
9+
public function __construct(\PHPFUI\ConstantContact\Client $client)
10+
{
11+
parent::__construct($client, '/v3/token_info');
12+
}
13+
14+
/**
15+
* Access Token Information
16+
*
17+
* IMPORTANT NOTE: As of March 31, 2022, this POST method is being depreciated.
18+
* To view the scopes associated with an access token, parse the access
19+
* token (JWT) claims.
20+
*
21+
*
22+
* @param \PHPFUI\ConstantContact\Definition\AuthToken $auth_token A JSON request payload containing a valid OAuth2.0 access token.
23+
*/
24+
public function post(\PHPFUI\ConstantContact\Definition\AuthToken $auth_token) : array
25+
{
26+
27+
return $this->doPost(['auth_token' => $auth_token->getData(), ]);
28+
}
29+
}

0 commit comments

Comments
 (0)