VSCode-ShareCode icon indicating copy to clipboard operation
VSCode-ShareCode copied to clipboard

Pastebin api key not taken.

Open SalokinGreen opened this issue 4 years ago • 3 comments

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"

SalokinGreen avatar Jun 15 '21 09:06 SalokinGreen

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

arekbr avatar Dec 25 '21 18:12 arekbr

#29

gainesm avatar Jul 26 '22 19:07 gainesm

@gainesm

gainesm avatar Jul 26 '22 19:07 gainesm