Re: convert Curl with headers -H and -- data to RestClient

Tim Fong <timfong888@...>

Hi I tried this but it an auth error. Let me try again. 

Sent from my iPhone

On Sep 30, 2014, at 2:33 PM, Kannan Manickam <kannan@...> wrote: "\&api_key=API", { 'contacts' => [1111], 'text' => 'Testing }.to_json, :content_typ
 e => 'application/json'
I hope this works.

On Sep 30, 2014, at 2:24 PM, Timothy Fong <timfong888@...> wrote:

How do I convert the following to Restclient?

curl -H "Content-Type: application/json" -X POST --data '{"contacts" : [1111],"text" : "Testing"}'\&api_key=APIKEY

Join to automatically receive all group messages.