Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drewm committed Jul 1, 2016
1 parent 5c8a084 commit cc6b39a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/MailChimp.php
Expand Up @@ -268,7 +268,7 @@ private function attachRequestPayload(&$ch, $data)
/**
* Decode the response and format any error messages for debugging
* @param array $response The response from the curl request
* @return array|false The JSON decoded into an array
* @return array|bool The JSON decoded into an array
*/
private function formatResponse($response)
{
Expand All @@ -283,6 +283,9 @@ private function formatResponse($response)

/**
* Check if the response was successful or a failure. If it failed, store the error.
* @param array $response The response from the curl request
* @param array $formattedResponse The response body payload from the curl request
* @return bool If the request was successful
*/
private function determineSuccess($response, $formattedResponse)
{
Expand All @@ -304,6 +307,9 @@ private function determineSuccess($response, $formattedResponse)

/**
* Find the HTTP status code from the headers or API response body
* @param array $response The response from the curl request
* @param array $formattedResponse The response body payload from the curl request
* @return int HTTP status code
*/
private function findHTTPStatus($response, $formattedResponse)
{
Expand Down

0 comments on commit cc6b39a

Please sign in to comment.