API Methods‎ > ‎

Post - Create

Summary

Publishes a post on a Network.


URL

http://api.linksalpha.com/ext3/post_create


Request Method

POST


Response Format

json


Required Parameters

Optional Parameters

  • Link:
    • Params
      • post_data_title: Title of the webpage
      • post_data_link: URL of the webpage
      • post_data_description: Description of the webpage
    • Notes
      • Adding of a link is supported for following Network types:
        • Facebook Profile
        • Facebook Page
        • Facebook Group
        • LinkedIn Profile
        • LinkedIn Page
        • LinkedIn Group
        • Yammer Profile
  • Image
    • Params
      • post_data_image: URL of the image
  • Privacy
    • Params
      • post_privacy_facebook: Possible values-
        • EVERYONE
        • ALL_FRIENDS
        • SELF
      • post_privacy_linkedin: Possible values-
        • anyone
        • connections-only
  • Video
    • Params
      • post_data_video: Used only while publishing to Facebook and has to be a YouTube video URL. For example - http://www.youtube.com/watch?v=wbfv1qOG3WM
  • Transition State
    • Params
      • post_transition: Possible values are-
        • publish
        • save
        • scheduled
    • Notes
      • You can choose to publish or save or schedule your post. 
      • Default action is "publish", which means the post will be published immediately to the given network.
      • If the post_transition is specified as "scheduled", you will have to specify the "Schedule" params given below.
  • Schedule
    • Params
      • scheduletime_year
      • scheduletime_month
      • scheduletime_day
      • scheduletime_hour
      • scheduletime_minute
      • scheduletime_email: Possible values are-
        • -1: No email
        • 0: On Success or Failure
        • 1: On Failure
    • Notes
      • Date and time combination should be a future time.
      • Posts will be published as per the time zone set in your Account Settings.
      • Schedule params are required only if post_transition is specified as "scheduled".
  • Misc
    • Params
      • post_reply_to: Used only for Posts being published to Twitter. This has to be id of a Tweet to which reply is being sent.


Sample Response


{
    errorMessage: null,
    results{
        message: "Post has been published successfully.",
        id: 388595110520172540,
    }
    errorCode: 0
}



Supported Networks

Publishing of posts via API is supported for the following Networks.
  1. Twitter
  2. Facebook Profile
  3. Facebook Page
  4. Facebook Group
  5. LinkedIn Profile
  6. LinkedIn Page
  7. LinkedIn Group
  8. Yammer Profile

Comments