Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » How to connect to api using cloud variables
- TsengGames
-
100+ posts
How to connect to api using cloud variables
New chatbot coming soon!
-
I want to use ChatGPT api to power my next chatbot but idk how to do that
Edit: I know this has been posted 1000 times but the previous posts don't make sense to me
Edit2: I mean something like this: https://scratch.mit.edu/projects/850366286/
-
I want to use ChatGPT api to power my next chatbot but idk how to do that
Edit: I know this has been posted 1000 times but the previous posts don't make sense to me
Edit2: I mean something like this: https://scratch.mit.edu/projects/850366286/
Last edited by TsengGames (June 5, 2023 13:48:16)

- GIitchInTheMatrix
-
1000+ posts
How to connect to api using cloud variables
Depends, do you know Python? If so, use an API Wrapper, like ScratchAttach: https://scratch.mit.edu/discuss/topic/603418/
If not, there are other languages you can use, although I don’t remember wrappers for them.
You can also leave it at making http requests to the api, but I don’t remember the end points.
If not, there are other languages you can use, although I don’t remember wrappers for them.
You can also leave it at making http requests to the api, but I don’t remember the end points.
Last edited by GIitchInTheMatrix (June 5, 2023 13:45:44)
- TsengGames
-
100+ posts
How to connect to api using cloud variables
https://scratch.mit.edu/discuss/topic/603418/I know how to code python but only a little bit and I have no idea what is an api wrapper Depends, do you know Python? If so, use an API Wrapper, like ScratchAttach:
If not, there are other languages you can use, although I don’t remember wrappers for them.
You can also leave it at making http requests to the api, but I don’t remember the end points.

- GIitchInTheMatrix
-
1000+ posts
How to connect to api using cloud variables
Basically, performs http requests for you.https://scratch.mit.edu/discuss/topic/603418/I know how to code python but only a little bit and I have no idea what is an api wrapper Depends, do you know Python? If so, use an API Wrapper, like ScratchAttach:
If not, there are other languages you can use, although I don’t remember wrappers for them.
You can also leave it at making http requests to the api, but I don’t remember the end points.
It has some documentation, you just need to know some Python. I’d suggest ensuring you’re efficient in the basics.
- TsengGames
-
100+ posts
How to connect to api using cloud variables
I know how to import openai but the install code won't work: Me: $ pip install openai Python: Invalid syntax Me: What the *?!Basically, performs http requests for you.https://scratch.mit.edu/discuss/topic/603418/I know how to code python but only a little bit and I have no idea what is an api wrapper Depends, do you know Python? If so, use an API Wrapper, like ScratchAttach:
If not, there are other languages you can use, although I don’t remember wrappers for them.
You can also leave it at making http requests to the api, but I don’t remember the end points.
It has some documentation, you just need to know some Python. I’d suggest ensuring you’re efficient in the basics.
Last edited by TsengGames (June 5, 2023 13:53:03)

- GIitchInTheMatrix
-
1000+ posts
How to connect to api using cloud variables
Screenshot pleaseI know how to import openai but the install code won't work: Me: $ pip install openai Python: Invalid syntax Me: What the *?!Basically, performs http requests for you.https://scratch.mit.edu/discuss/topic/603418/I know how to code python but only a little bit and I have no idea what is an api wrapper Depends, do you know Python? If so, use an API Wrapper, like ScratchAttach:
If not, there are other languages you can use, although I don’t remember wrappers for them.
You can also leave it at making http requests to the api, but I don’t remember the end points.
It has some documentation, you just need to know some Python. I’d suggest ensuring you’re efficient in the basics.
- ajskateboarder
-
1000+ posts
How to connect to api using cloud variables
Did you run “pip install” in a terminal, like “PowerShell”? I know how to import openai but the install code won't work: Me: $ pip install openai Python: Invalid syntax Me: What the *?!
software developer - artist - swimmer and occasional biker

I always seemed to get mad at people in 2022 posts and overuse things like :facepalm: If you are looking at one of those posts, just note I don't write like this anymore
- banana439monkey
-
1000+ posts
How to connect to api using cloud variables
(#7)Please Don't do that.Did you run “pip install” in a terminal, like “PowerShell”? I know how to import openai but the install code won't work: Me: $ pip install openai Python: Invalid syntax Me: What the *?!
Banana
Very inactive user who has now become a maker.
- TsengGames
-
100+ posts
How to connect to api using cloud variables
YesDid you run “pip install” in a terminal, like “PowerShell”? I know how to import openai but the install code won't work: Me: $ pip install openai Python: Invalid syntax Me: What the *?!

- ajskateboarder
-
1000+ posts
How to connect to api using cloud variables
Can you post the complete error when running the script? Run this command in a terminal:YesDid you run “pip install” in a terminal, like “PowerShell”? I know how to import openai but the install code won't work: Me: $ pip install openai Python: Invalid syntax Me: What the *?!
python name_of_file.py
software developer - artist - swimmer and occasional biker

I always seemed to get mad at people in 2022 posts and overuse things like :facepalm: If you are looking at one of those posts, just note I don't write like this anymore
- TsengGames
-
100+ posts
How to connect to api using cloud variables
I also tried thatCan you post the complete error when running the script? Run this command in a terminal:YesDid you run “pip install” in a terminal, like “PowerShell”? I know how to import openai but the install code won't work: Me: $ pip install openai Python: Invalid syntax Me: What the *?!in the directory where the Python file ispython name_of_file.py

- josueart
-
100+ posts
How to connect to api using cloud variables
i am @005742 on my new account also don't use your own system use replit or github or some other ide like thatbud, commas exist /j
This topic is old, old enough to be considered necroposting. It's better to develop on your own machine before deploying anywhere else.

My response may be inaccurate (i'm a human, humans commit miskates), so, please, remind that i have feelings and respond civilly.
“is that a zootopia reference?!!?!?!”
- TsengGames
-
100+ posts
How to connect to api using cloud variables
Also tried thati am @005742 on my new account also don't use your own system use replit or github or some other ide like thatI also tried thatCan you post the complete error when running the script? Run this command in a terminal:YesDid you run “pip install” in a terminal, like “PowerShell”? I know how to import openai but the install code won't work: Me: $ pip install openai Python: Invalid syntax Me: What the *?!in the directory where the Python file ispython name_of_file.py

- Discussion Forums
- » Questions about Scratch
-
» How to connect to api using cloud variables