Error with pastebin API: invalid API request, invalid api_paste_format

I use this API and this is my program .

Whenever I try to send paste to pastebin, I get an error message on line 77 in the API:

return resp;

I'm not sure what I need to do to get the message sent successfully.

The first random error like "PasteBin.PasteBinApiException" occurred in WinForms_Run.exe. Additional info: invalid API request, invalid api_paste_format

Any help is greatly appreciated.

+4
source share
1 answer

The exception you encounter is actually on the to line return resp.

75 PasteBinClient resp.

, , :

Bad API request, invalid api_option
Bad API request, invalid api_dev_key
Bad API request, IP blocked
... etc

EDIT: : invalid api_paste_format.

( 31) "" - "", API?

+4

Source: https://habr.com/ru/post/1546926/


All Articles