-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from thinkshout/oauth-with-api-key
Refactors classes to allow api_key and oauth access_tokens
- Loading branch information
Showing
11 changed files
with
306 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Mailchimp; | ||
|
||
use Mailchimp\http\MailchimpHttpClientInterface; | ||
|
||
/** | ||
* Defines an interface for a Mailchimp API object. | ||
* | ||
* @internal | ||
*/ | ||
interface MailchimpApiInterface { | ||
|
||
/** | ||
* Makes a request to the Mailchimp API. | ||
* | ||
* @param string $method | ||
* The REST method to use when making the request. | ||
* @param string $path | ||
* The API path to request. | ||
* @param array $tokens | ||
* Associative array of tokens and values to replace in the path. | ||
* @param array $parameters | ||
* Associative array of parameters to send in the request body. | ||
* @param bool $batch | ||
* TRUE if this request should be added to pending batch operations. | ||
* @param bool $returnAssoc | ||
* TRUE to return Mailchimp API response as an associative array. | ||
* | ||
* @return mixed | ||
* Object or Array if $returnAssoc is TRUE. | ||
* | ||
* @throws MailchimpAPIException | ||
*/ | ||
public function request($method, $path, $tokens = NULL, $parameters = [], $batch = FALSE, $returnAssoc = FALSE); | ||
|
||
|
||
} |
Oops, something went wrong.