5.0.0 • Published 5 years ago

@datafire/tumblr v5.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@datafire/tumblr

Client library for Tumblr

Installation and Usage

npm install --save @datafire/tumblr
let tumblr = require('@datafire/tumblr').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

Share photos, mobile apps, and social network using Tumblr's API's.

Actions

oauthCallback

Exchange the code passed to your redirect URI for an access_token

tumblr.oauthCallback({
  "code": ""
}, context)

Input

  • input object
    • code required string

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

oauthRefresh

Exchange a refresh_token for an access_token

tumblr.oauthRefresh(null, context)

Input

This action has no parameters

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

blog.base_hostname.info.get

This method returns general information about the blog, such as the title, number of posts, and other high-level data.

tumblr.blog.base_hostname.info.get({
  "base-hostname": ""
}, context)

Input

  • input object
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

blog.base_hostname.avatar.size.get

Retrieves a blog's avatar in one of 9 different sizes.

tumblr.blog.base_hostname.avatar.size.get({
  "base-hostname": ""
}, context)

Input

  • input object
    • base-hostname required string: The unique hostname of the blog.
    • size string (values: 16, 24, 30, 40, 48, 64, 96, 128, 512): The size of the avatar (square, one value for both length and width). Must be one of the values: 16, 24, 30, 40, 48, 64, 96, 128, 512

Output

Output schema unknown

blog.base_hostname.followers.get

Retrieves a blog's followers.

tumblr.blog.base_hostname.followers.get({
  "base-hostname": ""
}, context)

Input

  • input object
    • limit integer: The number of results to return: 1–20, inclusive
    • offset integer: Result to start at.
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

blog.base_hostname.posts.type.get

Retrieves published posts.

tumblr.blog.base_hostname.posts.type.get({
  "base-hostname": ""
}, context)

Input

  • input object
    • id integer: A specific post ID. Returns the single post specified or (if not found) a 404 error.
    • tag string: Limits the response to posts with the specified tag
    • limit integer: The number of posts to return: 1–20, inclusive
    • offset integer: Post number to start at.
    • rebloginfo boolean: Indicates whether to return reblog information (specify true or false). Returns the various reblogged fields.
    • notes_info boolean: Indicates whether to return notes information (specify true or false). Returns note count and note metadata.
    • format string (values: text, raw): Specifies the post format to return, other than HTML.
    • base-hostname required string: The unique hostname of the blog.
    • type string (values: text, quote, link, answer, video, audio, photo): The type of post to return. Specify one of the following: text, quote, link, answer, video, audio, photo. By default, all types are returned

Output

Output schema unknown

blog.base_hostname.posts.queue.get

Retrieves queued posts.

tumblr.blog.base_hostname.posts.queue.get({
  "base-hostname": ""
}, context)

Input

  • input object
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

blog.base_hostname.posts.draft.get

Retrieves draft posts.

tumblr.blog.base_hostname.posts.draft.get({
  "base-hostname": ""
}, context)

Input

  • input object
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

blog.base_hostname.posts.submission.get

Retrieves submission posts.

tumblr.blog.base_hostname.posts.submission.get({
  "base-hostname": ""
}, context)

Input

  • input object
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

blog.base_hostname.post.post

Creates a new video blog post.

tumblr.blog.base_hostname.post.post({
  "type": "",
  "base-hostname": ""
}, context)

Input

  • input object
    • type required string (values: text, photo, quote, link, chat, audio, video): The type of post to create.
    • tags string: Comma-separated tags for this post.
    • tweet string: Manages the autotweet (if enabled) for this post: set to off for no tweet, or enter text to override the default tweet
    • date string: The GMT date and time of the post, as a string. Default is the date and time of the POST request.
    • markdown boolean: Indicates whether the post uses markdown syntax.
    • caption string: The user-supplied caption.
    • embed string: HTML embed code for the video. Either the embed or data parameter is required.
    • data string: A video file, as URL-encoded binary. Either the embed or data parameter is required.
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

blog.base_hostname.post.edit.post

Edits a blog post.

tumblr.blog.base_hostname.post.edit.post({
  "type": "",
  "id": 0,
  "base-hostname": ""
}, context)

Input

  • input object
    • type required string (values: text, photo, quote, link, chat, audio, video): The post type.
    • tags string: Comma-separated tags for this post.
    • tweet string: Manages the autotweet (if enabled) for this post: set to off for no tweet, or enter text to override the default tweet
    • date string: The GMT date and time of the post, as a string. Default is the date and time of the POST request.
    • markdown boolean: Indicates whether the post uses markdown syntax.
    • id required integer: The ID of the post to edit.
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

blog.base_hostname.post.reblog.post

Reblogs a post.

tumblr.blog.base_hostname.post.reblog.post({
  "type": "",
  "reblog_key": 0,
  "base-hostname": ""
}, context)

Input

  • input object
    • type required string (values: text, photo, quote, link, chat, audio, video): The post type.
    • tags string: Comma-separated tags for this post.
    • tweet string: Manages the autotweet (if enabled) for this post: set to off for no tweet, or enter text to override the default tweet
    • date string: The GMT date and time of the post, as a string. Default is the date and time of the POST request.
    • markdown boolean: Indicates whether the post uses markdown syntax.
    • id integer: The ID of the reblogged post on tumblelog. Default is the next available ID.
    • reblog_key required integer: The reblog key for the reblogged post – get the reblog key with a /posts request
    • comment string: A comment added to the reblogged post.
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

blog.base_hostname.post.delete.post

Deletes a post.

tumblr.blog.base_hostname.post.delete.post({
  "id": 0,
  "base-hostname": ""
}, context)

Input

  • input object
    • id required integer: The ID of the post to delete.
    • base-hostname required string: The unique hostname of the blog.

Output

Output schema unknown

user.dashboard.get

Use this method to retrieve the dashboard that matches the OAuth credentials submitted with the request.

tumblr.user.dashboard.get({}, context)

Input

  • input object
    • limit integer: The number of results to return: 1–20, inclusive
    • offset integer: Post number to start at.
    • type string (values: text, photo, quote, link, chat, audio, video, question): The type of post to return.
    • since_id integer: Return posts that have appeared after this ID. Use this parameter to page through the results: first get a set of posts, and then get posts since the last ID of the previous set.

Output

Output schema unknown

user.likes.get

Use this method to retrieve the liked posts that match the OAuth credentials submitted with the request.

tumblr.user.likes.get({}, context)

Input

  • input object
    • limit integer: The number of results to return: 1–20, inclusive
    • offset integer: Liked post number to start at.

Output

Output schema unknown

user.following.get

Use this method to retrieve the blogs followed by the user whose OAuth credentials are submitted with the request.

tumblr.user.following.get({}, context)

Input

  • input object
    • limit integer: The number of results to return: 1–20, inclusive
    • offset integer: Result number to start at.

Output

Output schema unknown

user.follow.post

Follow a blog.

tumblr.user.follow.post({
  "url": null
}, context)

Input

  • input object

Output

Output schema unknown

user.unfollow.post

Unfollow a blog.

tumblr.user.unfollow.post({
  "url": null
}, context)

Input

  • input object

Output

Output schema unknown

Definitions

This integration has no definitions

5.0.0

5 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago