Skip to content

Instantly share code, notes, and snippets.

@richieforeman
Last active January 8, 2016 16:32
Show Gist options
  • Select an option

  • Save richieforeman/4fe219de43df5cd564d8 to your computer and use it in GitHub Desktop.

Select an option

Save richieforeman/4fe219de43df5cd564d8 to your computer and use it in GitHub Desktop.

Revisions

  1. richieforeman revised this gist Jan 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tracing_token_sample.php
    Original file line number Diff line number Diff line change
    @@ -8,5 +8,5 @@
    $makeAdmin = new Google_Service_Directory_UserMakeAdmin();
    $makeAdmin->setStatus(true);
    $service->users->makeAdmin('[email protected]', $makeAdmin, array(
    'trace' => 'trace:<<token goes here>>'
    'trace' => 'token:<<token goes here>>'
    ));
  2. richieforeman created this gist Jul 9, 2014.
    12 changes: 12 additions & 0 deletions tracing_token_sample.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    $service = new Google_Service_Directory($googleClient);

    // A tracing token can be utilizing with the PHP 1.0 library by passing an associative array to
    // the '$optParams' value of the method call. The order of this parameter varies for each method call,
    // but is typically immediately after the required arguments.
    //
    // The tracing token parameter will need to be added to EACH AND EVERY call where a tracing token is required.
    $makeAdmin = new Google_Service_Directory_UserMakeAdmin();
    $makeAdmin->setStatus(true);
    $service->users->makeAdmin('[email protected]', $makeAdmin, array(
    'trace' => 'trace:<<token goes here>>'
    ));