Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed Ruby 1.8 compatibility #5

Merged
merged 1 commit into from

2 participants

@ypt

ruby 1.8 hash syntax

@songz songz merged commit dd14fb5 into opentok:master
@songz

Thanks YPT!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 18, 2012
  1. @ypt

    ruby 1.8 hash syntax

    ypt authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/open_tok/open_tok_sdk.rb
View
4 lib/open_tok/open_tok_sdk.rb
@@ -130,7 +130,7 @@ def get_archive_manifest(archive_id, token)
def delete_archive( aid, token )
deleteURL = "/hl/archive/delete/#{aid}"
- doc = do_request( deleteURL, {test:'none'}, token )
+ doc = do_request( deleteURL, {test => 'none'}, token )
errors = doc.get_elements('Errors')
if doc.get_elements('Errors').empty?
#error = errors[0].get_elements('error')[0]
@@ -145,7 +145,7 @@ def delete_archive( aid, token )
def stitchArchive(aid)
stitchURL = "/hl/archive/#{aid}/stitch"
request = OpenTok::Request.new(@api_url, nil, @partner_id, @partner_secret)
- response = request.sendRequest(stitchURL, {test:'none'})
+ response = request.sendRequest(stitchURL, {test => 'none'})
case response.code
when '201'
return {:code=>201, :message=>"Successfully Created", :location=>response["location"]}
Something went wrong with that request. Please try again.