Search found 22 matches

Go to advanced search

by Thomas Anderson7286790
Sun Jan 04, 2015 5:43 pm
Forum: Issues
Topic: Using user collection
Replies: 2
Views: 555
 
Jump to post

Using user collection

Figured this out. I wasn't including the session token properly in the header.

Thanks anyway!

by Thomas Anderson7286790
Sat Jan 03, 2015 4:44 pm
Forum: Issues
Topic: Using user collection
Replies: 2
Views: 555
 
Jump to post

Using user collection

I'm struggling a bit with the user collection. My goal is to create the cleanest method of loading a user's fields into a local storage model on my app on login. I have successfully set up the login_service and am able to get the user's _id and session token into local storage variables. How do I ge...
by Thomas Anderson7286790
Tue Dec 30, 2014 5:12 am
Forum: Issues
Topic: Trouble http POST vs. GET
Replies: 5
Views: 938
 
Jump to post

Trouble http POST vs. GET

Thanks. Got this to work finally with your help.

by Thomas Anderson7286790
Mon Dec 29, 2014 1:29 pm
Forum: Issues
Topic: Trouble http POST vs. GET
Replies: 5
Views: 938
 
Jump to post

Trouble http POST vs. GET

Not sure you understand based on your reply. There are not 2 requests. My twilio app is sending the request based on a phone call to my app. I can set twilio to send the request as either a GET or a POST. I gave you an example of each request. My code works perfectly when twilio sends a GET request ...
by Thomas Anderson7286790
Sun Dec 28, 2014 4:32 pm
Forum: Issues
Topic: Trouble http POST vs. GET
Replies: 5
Views: 938
 
Jump to post

Trouble http POST vs. GET

I'm having an issue with handling an http 'POST' to my script. When I post to my script using an http 'GET', all works perfectly. Here is a sample of my code: // Get request parameters var requestParams = {}, paramKeys = request.keys(); for (var key = 0; key < paramKeys.length; key++) { requestParam...
by Thomas Anderson7286790
Tue Dec 23, 2014 1:39 pm
Forum: Issues
Topic: Getting URL Parameters from a remote request
Replies: 1
Views: 419
 
Jump to post

Getting URL Parameters from a remote request

I am doing an HTTP post to my server script from Twilio. I am having difficulty parsing the parameters sent in the URL. Getting "undefined" for every parameter when I use the method described here: http://devcenter.appery.io/tutorials/... My code: var requestParams = {}, paramKeys = reques...
by Thomas Anderson7286790
Tue Dec 23, 2014 3:06 am
Forum: Issues
Topic: Output XML to Twilio
Replies: 7
Views: 6764
 
Jump to post

Output XML to Twilio

Thanks. Making some progress. Below is my code that produces the desired XML output when run on a javascript tester. However, when I test it using the Run function in the server code section on Appery.io I don't get the desired output. The results are MIME Type: / Status: 200 Twilio = Object.create(...
by Thomas Anderson7286790
Mon Dec 22, 2014 5:56 am
Forum: Issues
Topic: Output XML to Twilio
Replies: 7
Views: 6764
 
Jump to post

Output XML to Twilio

I am familiar with this tutorial. However, it does not address my needs. I need to write a server script that outputs TWIML - twilios markup language. https://www.twilio.com/docs/api/twiml I've since found a JavaScript library for doing just that at : https://github.com/stevegraham/twilio-js However...
by Thomas Anderson7286790
Mon Dec 22, 2014 3:29 am
Forum: Issues
Topic: Using email as username - problems with Password Recovery tutorial
Replies: 12
Views: 1966
 
Jump to post

Using email as username - problems with Password Recovery tutorial

Did you mean

"where": '{"username": "' + encodeURI(username) + '"}'

instead of

"where": '{"username": "' + encodeURIComponent(username) + '"}' ?

encodeURI appears to work!

Regards,

Thomas

by Thomas Anderson7286790
Sun Dec 21, 2014 7:14 pm
Forum: Issues
Topic: Output XML to Twilio
Replies: 7
Views: 6764
 
Jump to post

Output XML to Twilio

Hey there, Appery is amazing. I am a newbie and searching for the best way to output XML to interact with a URL request from Twilio. I'm assuming that I will need to create custom server code to do this. Here is an example of the output required: (< replaced with - so you can see the code) -?xml ver...

Go to advanced search