PHPackages                             leverage-php/aweber - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. leverage-php/aweber

ActiveLibrary[API Development](/categories/api)

leverage-php/aweber
===================

A fork of the official AWeber API client library.

v1.1.19(3y ago)04031GPL-2.0PHP

Since Feb 5Pushed 3y agoCompare

[ Source](https://github.com/leverage-php/aweber)[ Packagist](https://packagist.org/packages/leverage-php/aweber)[ RSS](/packages/leverage-php-aweber/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (10)Used By (0)

Not maintained fork
===================

[](#not-maintained-fork)

This is a fork of the original AWeber-API-PHP-Library to fix OAuth response parsing that got suddenly broken by some change to response format on AWeber's end after many years of flawless operation.

It is not expected to be maintained.

---

This client library has been deprecated.
========================================

[](#this-client-library-has-been-deprecated)

### This library will no longer be supported and does not support OAuth2.

[](#this-library-will-no-longer-be-supported-and-does-not-support-oauth2)

### Please visit our [PHP Examples](https://github.com/aweber/public-api-examples/tree/master/php) as a reference.

[](#please-visit-our-php-examples-as-a-reference)

---

AWeber API PHP Library [![Build Status](https://camo.githubusercontent.com/12abeda3a5a3e1ecd5ef2ce467f115c569f6967d3086f713c5e7b9a9d3e337ed/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6177656265722f4157656265722d4150492d5048502d4c6962726172792e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/aweber/AWeber-API-PHP-Library)
==========================================================================================================================================================================================================================================================================================================================================================

[](#aweber-api-php-library-)

PHP library for easily integrating with the AWeber API.

Basic Usage:
------------

[](#basic-usage)

Refer to demo.php to see a working example of how to authenticate an app and query the API.

For more complete documentation please refer to:

Handling Errors:
----------------

[](#handling-errors)

Sometimes errors happen and your application should handle them appropriately. Whenever an API error occurs an AWeberAPIException will be raised with a detailed error message and documentation link to explain what is wrong.

You should wrap any calls to the API in a try/except block.

Common Errors:

- Bad request (400 error)
- Your application is not authorized (401 error)
- Your application has been rate limited (403 error)
- Resource not found (404 error)
- API Temporarily unavailable (503 error)

Refer to  for the complete list

Example Below:

```
