Connect to the Pastebin API to paste and share short source code snippets for code reviews. Test an API call in your browser and export the code snippet into your app.
Datatype | Description | Example |
---|---|---|
Datepicker | String which includes date and time | 2016-05-28 00:00:00 |
Map | String which includes latitude and longitude coma separated | 50.37, 26.56 |
List | Simple array | ["123", "sample"] |
Select | String with predefined values | sample |
Array | Array of objects | [{"Second name":"123","Age":"12","Photo":"sdf","Draft":"sdfsdf"},{"name":"adi","Second name":"bla","Age":"4","Photo":"asfserwe","Draft":"sdfsdf"}] |
Creating An apiUserKey
Field | Type | Description |
---|---|---|
apiDevKey | credentials | This is your API Developer Key |
userName | String | This is the username of the user you want to login |
userPass | String | This is the password of the user you want to login |
Creating A New Paste
Field | Type | Description |
---|---|---|
apiDevKey | credentials | This is your API Developer Key |
code | String | This is the text that will be written inside your paste |
apiUserKey | String | Use apiUserKey from createApiUserKey endpoint to own this paste. If not set, paste will be own by Guest |
name | String | This will be the name / title of your paste |
format | String | This will be the syntax highlighting value |
private | Select | This makes a paste public or private, public = 0, unlisted = 1, private = 2 |
expireDate | Select | This sets the expiration date of your paste. There are 7 valid values available which you can use: N = Never, 10M = 10 Minutes, 1H = 1 Hour, 1D = 1 Day, 1W = 1 Week, 2W = 2 Weeks, 1M = 1 Month |
Listing Pastes Created By A User
Field | Type | Description |
---|---|---|
apiDevKey | credentials | This is your API Developer Key |
apiUserKey | String | To get apiUserKey use createApiUserKey endpoint |
limit | Number | By default its set to 50, min value is 1, max value is 1000 |
Listing Trending Pastes
Field | Type | Description |
---|---|---|
apiDevKey | credentials | This is your API Developer Key |
Deleting A Paste Created By A User
Field | Type | Description |
---|---|---|
apiDevKey | credentials | This is your API Developer Key |
apiUserKey | String | Use apiUserKey from createApiUserKey endpoint |
pasteKey | String | Paste key |
Getting A Users Information And Settings
Field | Type | Description |
---|---|---|
apiDevKey | credentials | This is your API Developer Key |
apiUserKey | String | To get apiUserKey use createApiUserKey endpoint |
Getting raw paste output of users pastes including ‘private’ pastes
Field | Type | Description |
---|---|---|
apiDevKey | credentials | This is your API Developer Key |
apiUserKey | String | To get apiUserKey use createApiUserKey endpoint |
pasteKey | String | Paste key |
Getting raw paste output of any ‘public’ & ‘unlisted’ pastes
Field | Type | Description |
---|---|---|
pasteKey | String | Paste key |