I'm using the ruby curb gem and trying to call this api in the code. But, I'm not sure how to pass the -u parameter.
curl -X GET -H 'Accept: application/json' -u 111122223333: https://api.somesite.com/v1/apps/e876c39/users/activities?updated_since=20130925T120000Z
Here's the code I have so far, but it doesn't work without the -u option. I tried adding it as a parameter, but doesn't work.
url = "https://api.somesite.com/v1/apps/e876c39/users/activities?updated_since=20130925T120000Z"
curl = Curl::Easy.new(url)
curl.headers['Accept'] = 'application/json'
curl.headers['Content-Type'] = 'application/json'
curl.username = ENV['APP_ID'].to_s + ':'
result = curl.perform