Claude-API icon indicating copy to clipboard operation
Claude-API copied to clipboard

Rest APi?

Open theone2277 opened this issue 2 years ago • 5 comments

Will it work as a rest api if I host it in flask template in replit?

If yes, can I get some specific instructions?

theone2277 avatar Nov 18 '23 19:11 theone2277

Will it work as a rest api if I host it in flask template in replit?

If yes, can I get some specific instructions?

Yes, it works I tried making API using Flask

Randomboiii03 avatar Nov 19 '23 06:11 Randomboiii03

Will it work as a rest api if I host it in flask template in replit? If yes, can I get some specific instructions?

Yes, it works I tried making API using Flask

I also tried but I am not that familiar with that. Can you please share the project? If not, at least how I can do it like what important changes I need to make to the code?

Mine got can't send messages errors

theone2277 avatar Nov 19 '23 07:11 theone2277

Will it work as a rest api if I host it in flask template in replit? If yes, can I get some specific instructions?

Yes, it works I tried making API using Flask

I also tried but I am not that familiar with that. Can you please share the project? If not, at least how I can do it like what important changes I need to make to the code?

Mine got can't send messages errors

check my project named Flasks in my repo, idk if it will helps you😅

Randomboiii03 avatar Nov 19 '23 07:11 Randomboiii03

Will it work as a rest api if I host it in flask template in replit? If yes, can I get some specific instructions?

Yes, it works I tried making API using Flask

I also tried but I am not that familiar with that. Can you please share the project? If not, at least how I can do it like what important changes I need to make to the code? Mine got can't send messages errors

check my project named Flasks in my repo, idk if it will helps you😅

So, I forked it in replit. And how does it work, like there is no documentation on your project. So, can you tell me how to use it? like idk where to put the cookies. Tried hardcoding cookies but then got

{ "errorMessage": "Client error, please try again later.", "isError": true }

Do I need additional files or what?

theone2277 avatar Nov 19 '23 07:11 theone2277

Will it work as a rest api if I host it in flask template in replit? If yes, can I get some specific instructions?

Yes, it works I tried making API using Flask

I also tried but I am not that familiar with that. Can you please share the project? If not, at least how I can do it like what important changes I need to make to the code? Mine got can't send messages errors

check my project named Flasks in my repo, idk if it will helps you😅

So, I forked it in replit. And how does it work, like there is no documentation on your project. So, can you tell me how to use it? like idk where to put the cookies. Tried hardcoding cookies but then got

{ "errorMessage": "Client error, please try again later.", "isError": true }

Do I need additional files or what?

oh, I didn't add documentation yet 'cause it's personal proj😅, add cookie as query param cookie = request.args.get("cookie"), try it to run in localhost first and do POST using Postman like this http://127.0.0.1:5000/generate?cookie=<your-cookie>

Randomboiii03 avatar Nov 19 '23 08:11 Randomboiii03