| 1 | package Document::eSign::Docusign::revokeToken; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Data::Dumper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | =head1 NAME | ||||||||||
| 8 | |||||||||||
| 9 | Document::eSign::Docusign::revokeToken - Revokes an OAUTH2 token. | ||||||||||
| 10 | |||||||||||
| 11 | =head1 VERSION | ||||||||||
| 12 | |||||||||||
| 13 | Version 0.02 | ||||||||||
| 14 | |||||||||||
| 15 | =cut | ||||||||||
| 16 | |||||||||||
| 17 | =head1 functions | ||||||||||
| 18 | |||||||||||
| 19 | =head2 revokeToken($varshashref) | ||||||||||
| 20 | |||||||||||
| 21 | my $response = $ds->revokeToken( | ||||||||||
| 22 | { | ||||||||||
| 23 | token => 'tokenstring' | ||||||||||
| 24 | } | ||||||||||
| 25 | ); | ||||||||||
| 26 | |||||||||||
| 27 | =cut | ||||||||||
| 28 | |||||||||||
| 29 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 30 | 0 | ▶ | carp("Got token request: " . Dumper(@_)) if $_[1]->debug; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | 0 | my $class = shift; | |||||||||
| 32 | 0 | my $main = shift; | |||||||||
| 33 | 0 | my $vars = shift; | |||||||||
| 34 | 0 | my $self = bless {}, $class; | |||||||||
| 35 | |||||||||||
| 36 | 0 | my $uri = '/v2/oauth2/revoke'; | |||||||||
| 37 | |||||||||||
| 38 | # Build the portions of the get string as needed. | ||||||||||
| 39 | |||||||||||
| 40 | 0 | my $creds = $main->buildCredentials(); | |||||||||
| 41 | |||||||||||
| 42 | 0 | my $response = $main->sendRequest('POST', 'application/json', $creds, $main->defaultUrl . $uri, $vars); | |||||||||
| 43 | |||||||||||
| 44 | 0 | return $response; | |||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | |||||||||||
| 48 | 1 | 1; | |||||||||