This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-21 13:27:19

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

What's an authentication key?

So, I'm documenting the Scratch API's functions. I was doing fine until I ran into the 5th from bottom: get_latest_project. It said it requires an authentication key. What is this authentication key?

Offline

 

#2 2012-02-21 13:27:46

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: What's an authentication key?

Where is the API source code? I'll take a look at it.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#3 2012-02-21 13:33:16

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: What's an authentication key?

bobbybee wrote:

Where is the API source code? I'll take a look at it.

I was just reading through the function but couldn't find any description of the authentication key. Anyways, the source is here, and that function is on line 1062.

Offline

 

#4 2012-02-21 13:40:06

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: What's an authentication key?

Just taking a guess based on the parameters one would expect, couldn't it be the user's ID -- that series of numbers that were outputted by the authenticate_user.php page?

Offline

 

#5 2012-02-21 13:51:43

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: What's an authentication key?

It's a constant...


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#6 2012-02-21 14:29:59

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: What's an authentication key?

LS97 wrote:

Just taking a guess based on the parameters one would expect, couldn't it be the user's ID -- that series of numbers that were outputted by the authenticate_user.php page?

I tried that.  hmm

Offline

 

#7 2012-02-21 14:49:34

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: What's an authentication key?

So, why are you looking at Scratch's API again?


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#8 2012-02-21 18:57:38

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: What's an authentication key?

stevetheipad wrote:

So, why are you looking at Scratch's API again?

Why does it matter why? Anyway, he's creating a documentation for it so it's easier for developers to use.


Posts: 20000 - Show all posts

Offline

 

#9 2012-02-21 21:10:57

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: What's an authentication key?

veggieman001 wrote:

stevetheipad wrote:

So, why are you looking at Scratch's API again?

Why does it matter why? Anyway, he's creating a documentation for it so it's easier for developers to use.

Developers, or just people wanting to know some of the random stuff the API gives, like, what second a project was uploaded.  wink

Offline

 

Board footer