-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass alias through request api call for the "requested by:" field #2363
Comments
@v0idp Can you pass an additional header along with Since that would be ideal, If it's supplied then the API call runs under that user, else it runs under the API user. |
yes I can pass the username through the header. |
…allows people to use the API and request as a certain user. #2363
Done in develop and docs updated https://github.com/tidusjar/Ombi/wiki/Api-Information Just pass a valid username in as the "UserName" header and it will work. |
@tidusjar by valid username you mean a user which exists in the ombi userlist or can I just enter any string ? |
It needs to be a valid ombi user (Any user in the User Management Page) |
The question is how to link the discord users to the ombi users ?! Because in discord we can't tell which discord user is which ombi user. |
There's not much I can do about that, even if I included the property in the request body it still would have needed to be a valid user. Everything relies on being a real user (The APIKEY user is a real user, it's just hidden). Unless you create the discord user in Ombi. |
so there is no way to just visually show a different name on the requests ? |
I'll see what I can do. |
otherwise make another row where the passed username is in without using the real username so it would be something like "Requested by API" and another row with "username: xxx" and if no username was passed the row will be hidden |
could you use ombi's {UserPreference} Discord ID's? |
have mellow search the ombi user for a matching {UserPreference} (DISCORD ID) and have it get that username? |
Easiest way would be just passing the username from the discord bot to the api. the API just needs to support some kind of "nickname" in the header or body. so it can be used for everything and not just discord. |
It already allows you to pass a header. But the username you pass needs to be in ombi. So yes. I need to be able to pass a nickname |
I dont mind doing the request with the api, but I would like to pass it a nickname so it says an additional name to the api |
This has now been done. You can pass in a |
As requested by TidusJar I'm posting it here.
It would be nice if it was possible to set the alias for "requested by" field for each request api call.
For example in discord I could pass the username of the user to the api call so it shows "requested by discord username " instead of "requested by api"
The text was updated successfully, but these errors were encountered: