Rather than writing all your code from scratch when using an API like AWeber's it can be helpful to use an HTTP library that can handle the OAuth signatures and the nitty gritty details of making requests to our API, refreshing your OAuth 2 tokens, and so on.
We currently have code examples using the following libraries:
requests_oauthlib (Python 3 or Python 2)
Guzzle OAuth-Subscriber (PHP)
Not seeing your favorite library? If you already have a preferred HTTP library with support for OAuth 2 you can keep using it without any problem! There are a number of great libraries out there to choose from in a wide variety of programming languages so feel free to experiment if our libraries don't meet your needs.
If you'd like to request code samples in your preferred library or language you can send us an email at firstname.lastname@example.org. Let us know what you'd like to see and we'll consider adding it in a future update!