You are here

public static function Braintree_Http::get in Commerce Braintree 7

10 calls to Braintree_Http::get()
Braintree_AddOn::all in braintree_php/lib/Braintree/AddOn.php
Braintree_Address::find in braintree_php/lib/Braintree/Address.php
find an address by id
Braintree_CreditCard::find in braintree_php/lib/Braintree/CreditCard.php
find a creditcard by token
Braintree_Customer::find in braintree_php/lib/Braintree/Customer.php
find a customer by id
Braintree_Discount::all in braintree_php/lib/Braintree/Discount.php

... See full list

File

braintree_php/lib/Braintree/Http.php, line 25

Class

Braintree_Http
processes Http requests using curl

Code

public static function get($path) {
  $response = self::_doRequest('GET', $path);
  if ($response['status'] === 200) {
    return Braintree_Xml::buildArrayFromXml($response['body']);
  }
  else {
    Braintree_Util::throwStatusCodeException($response['status']);
  }
}