Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Ruby 1.8 compatibility #5

Merged
merged 1 commit into from Sep 21, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/open_tok/open_tok_sdk.rb
Expand Up @@ -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]
Expand All @@ -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"]}
Expand Down