Page 1 of 1

How do i save RESPONSE returned by rest Api to a Scope Variable without mapping?

Posted: Mon Jul 25, 2016 4:25 pm
by Mwesigwa Ezra

Am using Cloudinary file api to Upload and transform my files.It would be as easy as creating a new service,testing it,generate a response and then do a mapping!. the testing works fine but when i generate an apk and pass on an audio recording to it, it returns an error as shown below.
Image

So my solution was to use the fileTransfer Plugin and i followed the documentation here.(https://github.com/apache/cordova-plu...). Indeed it worked and the file was uploaded as implemented below. Image

My challenge is how to save the response returned by console.log("Response = " + r.response); into a scope because when i changed "console.log" to "alert", i was able to see the response like in the photo below. Image
kindly Help Me.


How do i save RESPONSE returned by rest Api to a Scope Variable without mapping?

Posted: Thu Jul 28, 2016 5:48 am
by Evgene Karachevtsev

Hello Mwesigwa,

We're sorry, but unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about it: http://appery.io/services/#Advisory_Pack


How do i save RESPONSE returned by rest Api to a Scope Variable without mapping?

Posted: Thu Jul 28, 2016 5:53 am
by Mwesigwa Ezra

Hello Evgene

Thank you for the response.it's quite unfortunate that this is out of your support scope.Couldn't you please just give me a hint on how to save this huge chunk of response into specific variables within a scope Object?Please.! kindly Please.