Page 1 of 1

Anybody use Parse (Facebook product) with LC yet?

Posted: Mon Jul 21, 2014 10:36 pm
by JeanGuilbault
Have anybody use Parse a Facebbok product) that offer cloud services(users management,data and notification) with LiveCode Commercial version 6.2 yet.

If so Please give me your opinion on the services and how it integrate, maybe as a REST service, with LC.

Merci
Jean Guilbault

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Tue Jul 22, 2014 10:38 am
by LCNeil
Hi Jean,

I will be going over using REST to send and receive data from Parse in next weeks lesson :)

Kind Regards,


Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Tue Jul 22, 2014 3:47 pm
by JeanGuilbault
Bonjour Neil,

That's great, I'm looking forward to your upcoming informations on using Parse.

I already have two On-Rev Server accounts that I basically use for design purposes.

In November we will be lunching an app that users push a status to a server some 20 times a day,
and query back the same number of times the server to receive an updated status.

In an incredible twist of fate, anticipated results from our marketing effort, we project that the user count may hit more then 100,000 daily user
in six month, (I know your thinking we will hit 1,000 at most....)
I'm looking at Parse because I dont have any idea of what number of simultanous user queries the On-Rev Servers can support,
or how they can support a growing demand.

Do you have a lot of customer user the On-Rev Servers that have a sizeable users daily operations, or heavy load demands ?

If those question should have been posted elsewhere. please let me know and I will do so.

Merci
Jean Guilbault

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Tue Jul 29, 2014 6:32 pm
by JeanGuilbault
Merci Neil for a great introduction to using Parse with LiveCode.

I really appreciate that you took the time to build an example stack and commented on it functionalities.

I'll be, I'm sure as others will be..., testing that in the upcoming hours.

Again, Merci a lot.
Jean Guilbault

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Wed Jul 30, 2014 5:44 am
by JeanGuilbault
Bonsoir Neil.

I tested your code on iPhone/iPad and Android hardware, and everything worked fine.
To do so I used your Parse login, and created maybe 6 new records.
I will from now on use my own Parse account as not to disrupt your Parse account.

I think you should post publicly the Parse Example stack.

Your fast response to my Parse question will enable us to finish our beta test of
our new app for the end of August. That will enable us to use our two On-Rev servers accounts
to other services we have planned around this new app.
That by itself, made the price of the Summer School #2 really worth it.

Again,
Merci for your collaboration
Jean Guilbault

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Thu Aug 07, 2014 5:05 pm
by pink
Hey there, I've been having fun with Parse, primarily using it to help figure out how to make it more challenging without being impossible. So I've been using the below to post scores and difficulties to Parse.


Code: Select all

on postParseData pName, pScore, pGen, pDiff
     ---Fill in these lines:
     put "RLMoz3jtzgVFJci6qzqTqKQhjHesqzqneSqxqNge" into appID
     put "HdJGblWk77hHgtFL0qzqk81pqzqeDyH4OJgqzqXS" into apiKEY
     put "scores" into apiClass
     put 4 into numberKeys
     put "User" into postArray["1"]["key"]
     put "Score" into postArray["2"]["key"]
     put "APT" into postArray["3"]["key"]
     put "Difficulty" into postArray["4"]["key"]
     put pName into postArray["1"]["value"]
     put pScore into postArray["2"]["value"]
     put pGen into postArray["3"]["value"]
     put pDiff into postArray["4"]["value"]
         
     ---Creates POST statement:
     put ("{"&quote) into tPost
     repeat with xx = 1 to numberKeys
          put postArray[xx]["key"] into theKey
          put postArray[xx]["value"] into theValue
          put theKey&quote&colon&quote&theValue after tPost
          if xx < numberKeys then put quote&comma&quote after tPost
     end repeat
     put (quote&"}")  after tPost
     
     ---Sets the Headers, creates the URL and POSTs the data
     set the httpHeaders to "X-Parse-Application-Id:" && appID & return & "X-Parse-REST-API-Key:" && apiKEY & return & "Content-Type: application/json"
     put ("https://api.parse.com/1/classes/"&apiClass) into tParseURL
     post tPost to url tParseURL
end postParseData

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Fri Sep 12, 2014 6:05 pm
by pedrorp
runrevneil wrote:Hi Jean,

I will be going over using REST to send and receive data from Parse in next weeks lesson :)

Kind Regards,


Neil Roger
--
LiveCode Support Team ~
Hi, where can I find those lessons? :?
I would be very grateful. :wink:
Thanks

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Mon Sep 29, 2014 10:58 pm
by pedrorp
So, no one is going to help me... Can somebody tell me where I can find what I need? :cry:

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Mon Sep 29, 2014 11:51 pm
by JeanGuilbault
It may be as simple to ask Neil Roger for the code example.

It was part of a presentation he made to answer one of my questions I made during the Summer School 2014 live presentation.

Bonne journée
Jean Guilbault

Re: Anybody use Parse (Facebook product) with LC yet?

Posted: Tue Sep 30, 2014 6:23 pm
by pink
pedrorp wrote:So, no one is going to help me... Can somebody tell me where I can find what I need? :cry:
The lesson that was being referred to was a part of "Summer School 2," so it isn't available outright.

If you give us an idea as to what you might want to do, maybe we can help you.