[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/twilio-php/Services/Twilio/ -> TinyHttp.php (summary)

(no description)

File Size: 126 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

Services_Twilio_TinyHttpException:: (0 methods):

Services_Twilio_TinyHttp:: (3 methods):
  __construct()
  __call()
  authenticate()


Class: Services_Twilio_TinyHttpException  - X-Ref

Based on TinyHttp from https://gist.github.com/618157.
Copyright 2011, Neuman Vong. BSD License.

Class: Services_Twilio_TinyHttp  - X-Ref

An HTTP client that makes requests

:param string $uri: The base uri to use for requests
:param array $kwargs: An array of additional arguments to pass to the
library. Accepted arguments are:

- **debug** - Print the HTTP request before making it to Twilio
- **curlopts** - An array of keys and values that are passed to
``curl_setopt_array``.

Here's an example. This is the default HTTP client used by the library.

.. code-block:: php

$_http = new Services_Twilio_TinyHttp(
"https://api.twilio.com",
array("curlopts" => array(
CURLOPT_USERAGENT => self::USER_AGENT,
CURLOPT_HTTPHEADER => array('Accept-Charset: utf-8'),
CURLOPT_CAINFO => dirname(__FILE__) . '/cacert.pem',
))
);
__construct($uri = '', $kwargs = array()   X-Ref
No description

__call($name, $args)   X-Ref
No description

authenticate($user, $pass)   X-Ref
No description



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1