Skip to content

Share stream

Rafael Chacon edited this page Feb 22, 2012 · 1 revision

Description:

Share the specified stream on facebook/twitter.

Note: In order to work, this method requires the user to have oauth authorizations tokens with facebook and twitter.

###URL: POST http://public-api.piictu.com/v2/streams/<stream id>/share

###HTTP method(s): POST

###Requires authentication (Authentication and Authorization): Yes

###Parameters:

  • message (string): text to share
  • share[] (optionas:string) services to share the photo, this parameter can be present several times:
share[]=twitter
share[]=facebook

###Usage example:

Example using cURL:

curl -i http://public-api.piictu.com/v2/streams/4d6ebc4f5a0d032648000001/share \
 -X POST \
 -F message=cool stream \
 -F share[]=facebook \
 -F share[]=twitter \
 -H "Authorization: OAuth 2540af0de12cb2367691516b8477b0b7bd66dbd8ab6840b147340c6898c4eebd"

###Response:

On success

  • HTTP response code is 200 (ok)

Clone this wiki locally