Anybody use Parse (Facebook product) with LC yet?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JeanGuilbault
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 21
Joined: Wed Apr 18, 2012 9:32 pm

Anybody use Parse (Facebook product) with LC yet?

Post by JeanGuilbault » Mon Jul 21, 2014 10:36 pm

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

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

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

Post by LCNeil » Tue Jul 22, 2014 10:38 am

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

JeanGuilbault
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 21
Joined: Wed Apr 18, 2012 9:32 pm

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

Post by JeanGuilbault » Tue Jul 22, 2014 3:47 pm

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

JeanGuilbault
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 21
Joined: Wed Apr 18, 2012 9:32 pm

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

Post by JeanGuilbault » Tue Jul 29, 2014 6:32 pm

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

JeanGuilbault
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 21
Joined: Wed Apr 18, 2012 9:32 pm

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

Post by JeanGuilbault » Wed Jul 30, 2014 5:44 am

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

pink
Posts: 280
Joined: Wed Mar 12, 2014 6:18 pm

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

Post by pink » Thu Aug 07, 2014 5:05 pm

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
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know

pedrorp
Posts: 2
Joined: Wed Sep 10, 2014 4:24 pm

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

Post by pedrorp » Fri Sep 12, 2014 6:05 pm

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

pedrorp
Posts: 2
Joined: Wed Sep 10, 2014 4:24 pm

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

Post by pedrorp » Mon Sep 29, 2014 10:58 pm

So, no one is going to help me... Can somebody tell me where I can find what I need? :cry:

JeanGuilbault
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 21
Joined: Wed Apr 18, 2012 9:32 pm

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

Post by JeanGuilbault » Mon Sep 29, 2014 11:51 pm

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

pink
Posts: 280
Joined: Wed Mar 12, 2014 6:18 pm

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

Post by pink » Tue Sep 30, 2014 6:23 pm

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.
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know

Post Reply