Skip to content
Browse files

ruby 1.8 hash syntax

  • Loading branch information...
1 parent c75c614 commit a836a1ca151b1ca88beafe1cdb28bfed3459b1bf @ypt committed Sep 18, 2012
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"]}

0 comments on commit a836a1c

Please sign in to comment.
Something went wrong with that request. Please try again.