JSON
Thomas McGrath III
mcgrath3 at mac.com
Tue Jun 4 18:16:11 EDT 2013
I don't know Monte, I will try and find out. But the info below is what was sent in the test using a restful client by the developer of the api.
-- Tom McGrath III
http://lazyriver.on-rev.com
mcgrath3 at mac.com
On Jun 4, 2013, at 6:07 PM, Monte Goulding <monte at sweattechnologies.com> wrote:
> Are device_type and dentist_id meant to be strings or integers?
>
> On 05/06/2013, at 7:55 AM, Thomas McGrath III <mcgrath3 at mac.com> wrote:
>
>> Thanks for the info. I am trying to use Igor's library and I am trying to build my first array to convert to json.
>>
>> This is the info I have to send as json:
>> {"data":
>> {"appuser_details":
>> {
>> "name":"Tom_iPad",
>> "email":"iPad at gmail.com",
>> "device_type":"2",
>> "dentist_id":"73",
>> "device_token":"98be5c7a3cc9e400ae6a90977ac6d64f498bb01cbe83c3c3d1bb4856de59ba1c"
>> }
>> }
>> }
>>
>> I think I need to send "text/json" as a header.
>>
>> I have tried many things but I don't think I am sending the information correctly.
>>
>> I got a result "error 400 Bad Request"
>>
>> I don't think my array is right.
>>
>>
>>
>> -- Tom McGrath III
>> http://lazyriver.on-rev.com
>> mcgrath3 at mac.com
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> --
> Monte Goulding
>
> M E R Goulding - software development services
> mergExt - There's an external for that!
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list