Sharing API \ Re-Publish a previously published message PHP SDK

Resource/URI GET POST PUT DELETE
Sharing API Messages /sharing/messages.json List published messages Publish a new message
Sharing API Message /sharing/messages/<sharing_message_token>.json Get message details Re-Publish a message Delete a message

Workflow

Request: the code to send to the API

POST the following structure to the resource /sharing/messages/<message_token>.json to re-publish a previously published message.

By publishing one and the same message to multiple users you obtain insights on how well the message is overally performing in terms of clickthroughs and resulting referral traffic.

Re-Publish on behalf of a user_token

Publish an existing message to multiple social network accounts of a user.

Use the following structure as POST data and include a user_token to post content on behalf of a user. The message will be published to all providers specified with the providers node. If a user has for example linked a Facebook and a Twitter account, you can publish content to both social network accounts at once.

{
	"request": {
		"sharing_message": {
			"publish_for_user": {
				"user_token": "#user_token#",
				"providers": [
					"#provider_key1#",
					"#provider_key2#"
				]
			}					
		}
	}
}
Key Description
* #user_token# The unique token of the user to post the content for.
Example: 9a76c7f6-3705-48a8-8ea6-e862ed86d5d8
* #provider_key1# The key of the first social network to publish the message to.
Example: facebook
#provider_key2# The key of the second social network to publish the message to.
Example: twitter

Re-Publish on behalf of an identity_token

Publish an existing message to a single social network account.

Use the following structure as POST data and include an identity_token to post content for a social network identity.

			{
			  "request": {
			    "sharing_message": {
			      "publish_for_identity": {
			        "identity_token": "identity_token;"	
			      }		     
			    }
			  }
			}
Key Description
* #identity_token# The unique token of the identity to post the content for.
Example: 03939f19-98bd-4a07-a949-531f15ed346b

Result: the code returned by the API

The result is similar to the one you receive after having published a new message.

User Contributed Notes