Commits on Aug 16, 2012
  1. Bump version to 3.7.1

    Kevin Burke committed Aug 16, 2012
  2. Don't update the URI when updating a resource

    An InstanceResource would overwrite its URI if properties were retrieved or
    updated on the object. However the URI returned from the API already has
    '.json' appended to it, so when the library tries to also append .json, the
    extension has been appended twice.
    
    This is a similar bug to #71.
    I have checked to try and make sure it cannot appear under any other
    circumstances in the library.
    Kevin Burke committed Aug 16, 2012
  3. Add failing test

    Kevin Burke committed Aug 16, 2012
  4. Document travis_install file

    Kevin Burke committed Aug 16, 2012
Commits on Aug 6, 2012
  1. Bump version to 3.7.0

    Kevin Burke committed Aug 6, 2012
  2. Resolve merge conflict

    Kevin Burke committed Aug 6, 2012
  3. Make retryAttempts a protected object var

    Kevin Burke committed Aug 6, 2012
Commits on Aug 5, 2012
  1. Bump version to 3.6.0 and add change note

    Kevin Burke committed Aug 5, 2012
  2. Add comments and fix formatting

    Kevin Burke committed Aug 5, 2012
Commits on Aug 4, 2012
  1. DRY up request retry logic with call_user_func

    Delete the other two helper functions. Works with all versions of PHP 5
    Kevin Burke committed Aug 4, 2012
  2. Document new Queue behavior

    Kevin Burke committed Aug 4, 2012
  3. Add tests for new Queue behavior.

    Kevin Burke committed Aug 4, 2012
  4. Finish implementation of Queue

    Add support for dequeuing members and creating new Queues. Document an existing
    method.
    Kevin Burke committed Aug 4, 2012
Commits on Aug 3, 2012
  1. Initial work on Queue.

    Needs more testing, but I suspect it may be complete
    Kevin Burke committed Aug 3, 2012
  2. Remove retryAttempts from TinyHTTP constructor

    Kevin Burke committed Aug 3, 2012
  3. Remove unnecessary helper function

    Kevin Burke committed Aug 3, 2012
  4. Move retry logic to the business level

    Also write a bunch of tests for the retry logic. Reverts TinyHTTP to the master
    version.
    Kevin Burke committed Aug 3, 2012
  5. Remove Content-Type check

    Not needed anymore as we try to parse the body as JSON.
    Kevin Burke committed Aug 3, 2012
Commits on Jul 31, 2012
  1. s/numAttemps/numAttempts.

    Don't understand how PHP didn't care before, and did the right
    thing anyway, but let's be explicit.
    Kevin Burke committed Jul 31, 2012
  2. Correctly handle retries

    The old code would retry forever, this checks the number of retries
    left correctly
    Kevin Burke committed Jul 31, 2012
  3. Retry 1 time if 500, and better Content-type check

    Sometimes the API will return Content-Type: text/html when a 500 server error
    occurs. This handles this failure case by trying to decode the body as JSON,
    then throwing a RestException if the json_decode fails.
    
    In addition, 500 text/html errors are often transient, and retrying the request
    will succeed. Modify the TinyHttp client to retry requests one time if they
    resulted in a 500 error, bringing this library in line with the twilio-ruby
    library.
    
    Add tests for the new decoding behavior.
    
    Refactor URI building code in Twilio.php and avoid branching based on whether
    the query parameters are empty or not.
    Kevin Burke committed Jul 31, 2012
  4. Fix participants code example

    Kevin Burke committed Jul 31, 2012
  5. Add working conference participants example

    Kevin Burke committed Jul 31, 2012
  6. Merge branch 'master' into add-docs

    Kevin Burke committed Jul 31, 2012
  7. Clear up text in calls usage doc

    Kevin Burke committed Jul 31, 2012
  8. Merge branch 'master' into doc-additions

    Kevin Burke committed Jul 31, 2012
  9. s/Instance/List in list resource rest docs

    Kevin Burke committed Jul 31, 2012
Commits on Jul 30, 2012
  1. Add usage examples to calls, SMS

    Kevin Burke committed Jul 30, 2012
Commits on Jul 23, 2012
  1. update package.php to 3.5.2

    Kevin Burke committed Jul 23, 2012
  2. Add changelog and bump version

    Kevin Burke committed Jul 23, 2012
  3. Merge branch 'fix-mute-participants'

    Kevin Burke committed Jul 23, 2012
  4. Merge branch 'correct-paging-with-iterator'

    Kevin Burke committed Jul 23, 2012
  5. Remove filters from paging with next_page_uri

    The next_page_uri includes filters, so you don't need to continue adding them
    to subsequent API requests. If the next_page_uri is being used, just pass an
    empty array for the filters.
    
    Also add a test for the correct behavior in this case, based on the real API
    response.
    Kevin Burke committed Jul 23, 2012
  6. Merge test from upstream

    Kevin Burke committed Jul 23, 2012
  7. Fix Participants instance resource creation

    I realized we already had a test for muting participants. However, the mock
    JSON endpoint was incorrect - it assumed Participants have a 'sid', while they
    actually have a call_sid that you are supposed to use for querying.
    
    This changes the mock JSON to do the right thing, and also overrides
    getObjectFromJson to take a parameter in case the id parameter is not named
    'sid' but instead named something silly like 'call_sid'. Also deletes the
    duplicate test and fixes the old, broken test.
    Kevin Burke committed Jul 23, 2012