Discuss Scratch

8discobusy
Scratcher
98 posts

Google APIs

I know this might be a bit difficult but I'm wondering if an extension can connect a project to google services such as google play games or gmail?

Znapi
Scratcher
500+ posts

Google APIs

Someone has connected an extension to the Google Feed API. The extension is called FeedMe, if you want to look at the source, so I'm sure it's possible.
Here's a ScratchX link:
http://scratchx.org/?url=http://thepuzzlegame.github.io/extensions/feedme.js#scratch

Last edited by Znapi (June 3, 2015 13:50:37)

Jonathan50
Scratcher
1000+ posts

Google APIs

8discobusy wrote:

I know this might be a bit difficult but I'm wondering if an extension can connect a project to google services such as google play games or gmail?
You can send HTTP requests using AJAX
That may work depending on Google

Not yet a Knight of the Mu Calculus.
masterex1000
Scratcher
68 posts

Google APIs

i guess you could use the drive API if you wan't. But you will need to put the entire drive API into your code.

Generation 379: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.
Jonathan50
Scratcher
1000+ posts

Google APIs

masterex1000 wrote:

i guess you could use the drive API if you wan't. But you will need to put the entire drive API into your code.
No…

Not yet a Knight of the Mu Calculus.
powerpoint56
Scratcher
1000+ posts

Google APIs

Znapi wrote:

Someone has connected an extension to the Google Feed API. The extension is called FeedMe, if you want to look at the source, so I'm sure it's possible.
Here's a ScratchX link:
http://scratchx.org/?url=http://thepuzzlegame.github.io/extensions/feedme.js#scratch
Yes, that was me, except it looks like the API is now deprecated.


Explore, my Scratch mod | Car Crash | My projects | (image by @MicroMacro)
ChocolatePi
Scratcher
1000+ posts

Google APIs

Jonathan50 wrote:

8discobusy wrote:

I know this might be a bit difficult but I'm wondering if an extension can connect a project to google services such as google play games or gmail?
You can send HTTP requests using AJAX
That may work depending on Google
I'm pretty sure it's not called AJAX anymore
That was a buzzword from the late 90s if I remember correctly
liam48D
Scratcher
1000+ posts

Google APIs

ChocolatePi wrote:

Jonathan50 wrote:

8discobusy wrote:

I know this might be a bit difficult but I'm wondering if an extension can connect a project to google services such as google play games or gmail?
You can send HTTP requests using AJAX
That may work depending on Google
I'm pretty sure it's not called AJAX anymore
That was a buzzword from the late 90s if I remember correctly
Not called AJAX? What else is it called then?

202e-202e-202e-202e-202e UNI-CODE~~~~~
Jonathan50
Scratcher
1000+ posts

Google APIs

ChocolatePi wrote:

Jonathan50 wrote:

8discobusy wrote:

I know this might be a bit difficult but I'm wondering if an extension can connect a project to google services such as google play games or gmail?
You can send HTTP requests using AJAX
That may work depending on Google
I'm pretty sure it's not called AJAX anymore
That was a buzzword from the late 90s if I remember correctly
Huh?

Not yet a Knight of the Mu Calculus.
ChocolatePi
Scratcher
1000+ posts

Google APIs

You don't send requests using anything. You just send requests
Jonathan50
Scratcher
1000+ posts

Google APIs

ChocolatePi wrote:

You don't send requests using anything. You just send requests
Ok then…
Then send a request to Google.
You could also inject a script into the page:
var googleApiName = document.createElement('script');
googleApiName.src = "http://url/to/google/api.js";
googleApi.onload = function() {
  ScratchExtensions.register('extension-name', descriptor, ext);
}
document.body.append(googleApiName);
Put that near the bottom of the extension. Replace this line of code:
ScratchExtensions.register('extension-name', descriptor, ext);
with the above.
(If Google's API is “send a HTTP request” rather than put a script in your page, use AJAX send a request instead)

Last edited by Jonathan50 (Sept. 21, 2015 23:52:44)


Not yet a Knight of the Mu Calculus.
irulas
New to Scratch
3 posts

Google APIs

I don't know using powerpoint with my iPad 2


Ipad 2
A-E-
Scratcher
100+ posts

Google APIs

Last edited by A-E- (Feb. 16, 2022 19:47:44)

A-E-
Scratcher
100+ posts

Google APIs

Last edited by A-E- (Feb. 16, 2022 19:47:26)

Joshygator
Scratcher
1 post

Google APIs

Hello, I am adding a browser to my scratch game, and I was wondering if I could take every search result from google and put it on scratch. I'm a kid and my dad codes for a living, and he says that there is a possibility that I could get the APIs from google and put it in my scratch game, I am wondering if you know how to do that. If you know, please give me a basic answer instead of a complex one because this is all new to me.

-Thanks!!
JoshsAccount
Scratcher
100+ posts

Google APIs

Necropost - this thread died in 2015

Last edited by JoshsAccount (Feb. 14, 2022 21:37:50)


helo yes am j

when i feel like making stuff :: events hat
make {
brands :: motion
mods :: looks
} :: control loop cap

Powered by DjangoBB