Is there any api to get replit user info ?
Can you explain more on âreplit user infoâ?
- Name
- ID
- Bio
- Profile Picture
For html, enable replit auth. Then do something with from replit import web
.
@BlueFlameIsHere thereâs an extension api for that docs
Or use ReplAuth
Or in python:
import os
os.environ['REPL_OWNER'] # returns the name of the current user
Can I fetch the api ?
I donât think its an api, its a module.
ok , Thanks For Helping Me
You can use GraphQL for this, though. Itâs Replitâs API.
Just import it and use its functions
It literally says itâs an API.
So it is an API
Replit API is not going to be given out anymore, thoughâŚ
Uh, what? It can still be usable, but rules have gone stricter.
Thatâs for flask.
@app.route('/')
@web.authenticated
def index():
return ''
You can use it, but you canât get it. Only Replit Staff and users who currently have it can use it.
There are a lot of people who know Replitâs API though. (Weâre cluttering this topic a bit, can we take this to PMs?)
But everything seems to be on-topic
True, but I donât know what it is, nor do I think @BlueFlameIsHere knows too.
Btw is it a specific text or a mix of symbols and letters (like OpenAI API)?
https://graphql-playground.pikachub2005.repl.co/ might help, with the query query { userByUsername(username: "username") { id username image } }
You can use Replit Authentication and you will get some information about signed-in users.
https://docs.replit.com/hosting/authenticating-users-repl-auth
https://docs.replit.com/hosting/repl-auth-sidebar
Yeah there is but you have to ask the mods if youâre allowed to use it. Some people have been banned for using it.
links:
TWA posted pikachuBâs project which is a really good project, I like using it.
If you search Replit for âGraphQLâ, there are a few templates that have basic user info fetched from the Replit API. By connecting this with ReplAuth, you could have a nice little system to get data on your users.