Skip to content
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

Getting Wrong Response #2

Open
dev-avology opened this issue May 21, 2021 · 8 comments
Open

Getting Wrong Response #2

dev-avology opened this issue May 21, 2021 · 8 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@dev-avology
Copy link

Hi,

I have generated an auth token using my phone number then I'm calling the following API by using my auth token and username.

https://www.clubhouseapi.com/api/get_channels

I'm getting the following response.

{
"detail": "You do not have permission to perform this action."
}

But I'm expecting a list of rooms. Could you please help? But I'm doing wrong.

Thanks in advance

@dev-avology dev-avology changed the title Getting Wrong Response I think Getting Wrong Response May 29, 2021
@hatamiarash7
Copy link
Owner

hatamiarash7 commented Jun 7, 2021

  • Do you have access to other endpoints? for example profile's data
  • Did you set auth_token variable?

@dev-avology
Copy link
Author

Hi,

I have checked other APIs as well. Sample APIs are working fine but when I'm trying with the real auth token then I'm getting the permission issue as shown above.

Thanks

@dev-avology
Copy link
Author

I have set the following parameters. Please check the screenshot.

https://prnt.sc/14hh4hs

@hatamiarash7
Copy link
Owner

You should set auth_token in Variables section :

Screenshot 2021-06-07 123320

@dev-avology
Copy link
Author

Okay, Let me try in this way.

@dev-avology
Copy link
Author

Could you please let me know which software you are using to hit the API as I'm using the Postman on windows but didn't see the variables options but in my case all the variables are passed in the header section and have passed my auth_token there. As shown in the above screenshot.

@dev-avology
Copy link
Author

Following is a screenshot of the curl code

https://prnt.sc/14hxr6s

@hatamiarash7 hatamiarash7 self-assigned this Jun 7, 2021
@hatamiarash7 hatamiarash7 added the help wanted Extra attention is needed label Jun 7, 2021
@dev-avology
Copy link
Author

Hi,

Is there any update on the above issue?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants