Functions of org.wso2.ballerina.connectors.twitter package
function constructRequestHeaders(message request, string httpMethod, string serviceEP, string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, map parameters)
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
request | message | |
httpMethod | string | |
serviceEP | string | |
consumerKey | string | |
consumerSecret | string | |
accessToken | string | |
accessTokenSecret | string | |
parameters | map |
Connectors of org.wso2.ballerina.connectors.twitter package
connector ClientConnector (string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret)
Twitter client connector.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
consumerKey | string | The consumer key of the Twitter account. |
consumerSecret | string | The consumer secret of the Twitter account. |
accessToken | string | The access token of the Twitter account. |
accessTokenSecret | string | The access token secret of the Twitter account. |
action destroyStatus()
Distroy a status.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
id | string | The numerical ID of the desired status. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action getClosestTrendLocations()
Retrive closest trend locations.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
lat | string | Latitude of the location. |
long | string | Longitude of the location |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action getTopTrendsByPlace()
Retrive top trends by place.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
locationId | string | The Yahoo! Where On Earth ID of the location to return trending information for. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action retweet()
Retweet a tweet.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
id | string | The numerical ID of the desired status. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action search()
Search for tweets.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
query | string | Query string to retrieve the related tweets. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action showStatus()
Retrive a single status.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
id | string | The numerical ID of the desired status. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action tweet()
Update the authenticated user's current status.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
status | string | The text of status update |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |
action unretweet()
Untweet a retweeted status.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
id | string | The numerical ID of the desired status. |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | Response object. |