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

Pastebin api key not taken. #28

Open
SalokinGreen opened this issue Jun 15, 2021 · 3 comments
Open

Pastebin api key not taken. #28

SalokinGreen opened this issue Jun 15, 2021 · 3 comments

Comments

@SalokinGreen
Copy link

I try to upload my code to paste bin, but I get the error "Bad API request, invalid api_user_key"
I got my key from https://pastebin.com/doc_api under "Your Unique Developer API Key"

@arekbr
Copy link

arekbr commented Dec 25, 2021

I found it :)

please use in Windows command line (in cmd line you need use this-->" - not this -->' )

curl -X POST -d "api_dev_key=api_dev_key" -d "api_user_name=a_users_username" -d "api_user_password=a_users_password" "https://pastebin.com/api/api_login.php"

or UNIX (yes, just use this --> '

curl -X POST -d 'api_dev_key=api_dev_key' -d 'api_user_name=a_users_username' -d 'api_user_password=a_users_password' "https://pastebin.com/api/api_login.php"

to create api_user_key. And then, You get response from pastebin and get api_user_key. Use this key for codeshare settings. :)

all the best
Yugorin

@gainesm
Copy link

gainesm commented Jul 26, 2022

#29

@gainesm
Copy link

gainesm commented Jul 26, 2022

@gainesm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants