Pastebin.com API

Get help with using AutoHotkey and its commands and hotkeys
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Pastebin.com API

14 Jan 2014, 04:57

Does anyone have any experience with APIs?
I don't understand the examples from Pastebin.com/api.
Can someone please explain it to me or if possible create a simple AHK script that can paste text from a variable into Pastebin.com? Thanks in advance.
User avatar
Blackholyman
Posts: 1241
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark
Contact:

Re: Pastebin.com API

14 Jan 2014, 07:09

No time at the moment to explain but for now here is a function Example from RaptorX's Autohotkey Toolkit thats using a httpRequest function

Code: [Select all] [Expand] [Download] (example.ahk)GeSHi © Codebox Plus

User avatar
Avi
Posts: 193
Joined: 30 Sep 2013, 09:51
Facebook: avi.aryan.ap
Google: +AviAryan
GitHub: aviaryan
Location: India
Contact:

Re: Pastebin.com API

15 Jan 2014, 07:09

I had worked on a Pastebin API earlier but I never released it.
Here is the link ( https://github.com/avi-aryan/totalpaste ... BinApi.ahk ) .
This code pastes on Pastebin

Code: [Select all] [Download] GeSHi © Codebox Plus

pbin := new pastebin()
msgbox % Clipboard := pbin.pasteAsGuest("some text to paste", "paste_name", "autohotkey")


The API is complete with respect to their documentation. It should work well.
Clipjump Clipboard Manager : More Scripts

Image
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Re: Pastebin.com API

15 Jan 2014, 09:52

Thanks guys for the codes. Will try them when I have time. I'm actually trying to create a Pastebin desktop tool, but don't understand the examples on Pastebin.com/api which uses cURL that I totally don't have any knowledge about :?
labrint
Posts: 32
Joined: 14 Jun 2017, 05:06

Re: Pastebin.com API

14 Nov 2017, 06:58

Below is an example of how to post on PASTEBIN as a registered user;

This is also useful for someone who needs to make HTTP Requests (Query, GET, POST methods) to other website's API. It is very simple to use and straightforward to understand.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Getting your Dev Key (api_dev_key);

Go to https://pastebin.com/api and find the section "Your Unique Developer API Key". Your dev key is listed here.

Getting your User Key (api_dev_key);

Go to https://pastebin.com/api/api_user_key.html. Enter your username and password and click "create api_user_key"

Unfortunately it is NOT possible to Edit pastebin pastes using Http Requests.

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 39 guests