You are here

class AddThisJson in AddThis 7.4

@file A class containing utility methods for json-related functionality.

Hierarchy

Expanded class hierarchy of AddThisJson

File

classes/Util/AddThisJson.php, line 7
A class containing utility methods for json-related functionality.

View source
class AddThisJson {
  public function decode($url) {
    $response = drupal_http_request($url);
    $responseOk = $response->code == 200;
    return $responseOk ? drupal_json_decode($response->data) : NULL;
  }

}

Members