Often, the easiest way to learn how to use an API can be to look at sample code. This page provides links to samples and a number of convenient ways to access the Google Affiliate Network API.
Google Affiliate Network API samples
The Google Affiliate Network API is built on HTTP and JSON, and any standard web stack can read data from it.
If you want to add or modify data, your application needs to get user authorization for those calls; the Google APIs client libraries make it easy to do this.
Here are some of the available Google Affiliate Network API samples:
|Type||Language||Sample description||Client library||API version|
||Google APIs Client Library for Python||1.0|
||Google APIs Client Library for Java||1.0|
Google APIs client libraries
When you use the Google APIs Client Libraries, you benefit from better language integration, improved security, and support for making calls that require user authorization.
In the table below, the first column shows each library's stage of development; note that some are still in early stages. The second column links to the main page for each library.
For libraries that have samples for the Google Affiliate Network API, the third column in the table below links to them directly. If a library's samples page does not yet include a sample for this API, you can still use that library -- simply adapt one of the existing samples as needed.
|Client library||Documentation||All client library samples|
|Google APIs Client Library for .NET (beta)||google-api-dotnet-client/||.NET samples|
|Google APIs Client Library for Go (alpha)||google-api-go-client/||Go samples|
|Google API Libraries for Google Web Toolkit (alpha)||gwt-google-apis/||GWT samples|
|Google APIs Client Library for Java (rc)||google-api-java-client/||Java samples|
|Google APIs Client Library for Node.js (alpha)||Google APIs Client Library for Node.js||Node.js samples td>|
|Google APIs Client Library for Objective-C||google-api-objectivec-client/||Objective-C samples|
|Google APIs Client Library for PHP (beta)||google-api-php-client/||PHP samples|
|Google APIs Client Library for Python||Google APIs Client Library for Python||Python samples|
|Google APIs Client Library for Ruby (alpha)||google-api-ruby-client/||Ruby samples|