Difference between revisions of "TwitterSocialAdapter"

From GreenVulcano Wiki
Jump to: navigation, search
Line 4: Line 4:
 
Please refer to [[GVSocialAdapter-Configuration]] to see the generic call.
 
Please refer to [[GVSocialAdapter-Configuration]] to see the generic call.
  
The other calls are the following:
+
The VCL operations usable in the workflows are the following:
 
+
{|class="gvtable" style="width: 80%"
* ''updateStatus(java.lang.String status)'' sends a tweet. The status is the message to tweet.
+
! style="width: 5%" | !! style="width: 20%" | Plug-in !! style="width: 75%" | Use this for ...
* ''retweetStatus(long statusId)'' retweets a tweet identified by its Id.
+
|-
* ''sendDirectMessage(long userId, java.lang.String text)'' sends a message directly to a user.
+
| [[File:Tweet.png | 20px]] || [[twitter-update-status]]  || tweet
* ''enableNotification(long userId)'' follows a Twitter account.
+
|-
* ''disableNotification(long userId)'' unfollows a Twitter account.
+
| [[File:Retweet.png | 20px]] || [[twitter-retweet-status]] || retweet
* ''getFollowersIDs(long userId, long cursor)'' gets the list of the account's followers beginning from the ''cursor'' position.
+
|-
* ''getFriendsIDs(long cursor)'' gets the list of the account's friends, that is the followed accounts, beginning from the ''cursor'' position.
+
| [[File:Follow.png | 20px]] || [[twitter-enable-notification]] || follow
The last two calls return a long[] value setting it into the [[GVBuffer]].
+
|-
 +
| [[File:Unfollow.png | 20px]] || [[twitter-disable-notification]] || unfollow
 +
|-
 +
| [[File:Follower.png | 20px]] || [[twitter-get-followers-ids]] || get followers
 +
|-
 +
| [[File:AddUser.png | 20px]] || [[twitter-get-friends-ids]] || get friends
 +
|-
 +
| [[File:Message.png | 20px]] || [[twitter-send-direct-message]] || send direct tweet
 +
|}
 +
<div class="version_ge3.4">
 +
{|class="gvtable" style="width: 80%"
 +
! style="width: 5%" | !! style="width: 20%" | Plug-in !! style="width: 75%" | Use this for ...
 +
|-
 +
| [[File:Tweet.png | 20px]] || [[twitter-get-user-timeline]]  || get user timeline
 +
|-
 +
| [[File:Tweet.png | 20px]] || [[twitter-search]] || search status updates
 +
|}
 +
</div>

Revision as of 07:32, 14 May 2014

Twitter adapter is an implementation of the Social Adapter dedicated to Twitter platform. It can be called as specified into GVSocialAdapter-Configuration specifying a method name to call, or with some custom function reflecting Twitter ones.

Please refer to GVSocialAdapter-Configuration to see the generic call.

The VCL operations usable in the workflows are the following:

Plug-in Use this for ...
Tweet.png twitter-update-status tweet
Retweet.png twitter-retweet-status retweet
Follow.png twitter-enable-notification follow
Unfollow.png twitter-disable-notification unfollow
Follower.png twitter-get-followers-ids get followers
AddUser.png twitter-get-friends-ids get friends
Message.png twitter-send-direct-message send direct tweet
Plug-in Use this for ...
Tweet.png twitter-get-user-timeline get user timeline
Tweet.png twitter-search search status updates