POST

This:

	http = NewHttp("https://api.twitter.com/1.1/statuses/update.json","" ,"POST")   
   oa.sign(http,true)
   http.PostFromStringWithTimeout( "status=test", 10 )

returns this:

Http: # 662 done status: 400 time: 246ms request: POST https://api.twitter.com/1.1/statuses/update.json
body: oauth_consumer_key=XX&oauth_nonce=XX&oauth_signature=9XX&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1383585583&oauth_token=XX&oauth_version=1.0

Why is the value string "“status=test” not attaching? The debugger wont let me do it any other way.
Thanks

Not super familiar with this example, but…

NewHTTP() and PostFromStringWithTimeout() are not SDK functions. They’re defined in BrightScript somewhere in your channel. You need to find that code, look at what it does with the parameters you’re passing, and modify it to do what you want.

The first place I would look is the call to Prep() and the value (if any) assigned to the callbackPrep attribute.

Function http_post_from_string_with_timeout(val As String, seconds as Integer) as String
    m.Prep("POST")
    if (m.Http.AsyncPostFromString(val)) then m.Wait(seconds)
    return m.response
End Function

Thanks Chris, I will start my looking there.