You are here

public function GAFeed::revokeToken in Google Analytics Reports 6

Same name and namespace in other branches
  1. 7 GAFeed.lib.inc \GAFeed::revokeToken()

Revoke OAuth token.

File

./GAFeed.lib.inc, line 147
Provides the GAFeed object type and associated methods.

Class

GAFeed
GAFeed class to authorize access to and request data from the Google Analytics Data Export API.

Code

public function revokeToken() {
  $this
    ->setHost($this->OAuthHost);
  $this
    ->setQueryPath('accounts/AuthSubRevokeToken');
  $this
    ->query($this->queryPath, array(), 'GET', array(
    'refresh' => TRUE,
  ));
}