Ballerina API Documentation

Functions of org.wso2.ballerina.connectors.twitter package

function constructRequestHeaders(Request request, string httpMethod, string serviceEP, string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, map parameters)

Parameters:

Parameter NameData TypeDescription
requestRequest
httpMethodstring
serviceEPstring
consumerKeystring
consumerSecretstring
accessTokenstring
accessTokenSecretstring
parametersmap


Connectors of org.wso2.ballerina.connectors.twitter package

connector ClientConnector (string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret)

Twitter client connector.

Parameters:

Parameter NameData TypeDescription
consumerKeystringThe consumer key of the Twitter account.
consumerSecretstringThe consumer secret of the Twitter account.
accessTokenstringThe access token of the Twitter account.
accessTokenSecretstringThe access token secret of the Twitter account.

Actions:

action destroyStatus(string id)

Distroy a status.

Parameters:

Parameter NameData TypeDescription
idstringThe numerical ID of the desired status.

Return Parameters:

Return VariableData TypeDescription
ResponseResponse object.

action getClosestTrendLocations(string lat, string long)

Retrive closest trend locations.

Parameters:

Parameter NameData TypeDescription
latstringLatitude of the location.
longstringLongitude of the location

Return Parameters:

Return VariableData TypeDescription
ResponseResponse object.

action getTopTrendsByPlace(string locationId)

Retrive top trends by place.

Parameters:

Parameter NameData TypeDescription
locationIdstringThe Yahoo! Where On Earth ID of the location to return trending information for.

Return Parameters:

Return VariableData TypeDescription
ResponseResponse object.

action retweet(string id)

Retweet a tweet.

Parameters:

Parameter NameData TypeDescription
idstringThe numerical ID of the desired status.

Return Parameters:

Return VariableData TypeDescription
ResponseResponse object.

action search(string query)

Search for tweets.

Parameters:

Parameter NameData TypeDescription
querystringQuery string to retrieve the related tweets.

Return Parameters:

Return VariableData TypeDescription
ResponseResponse object.

action showStatus(string id)

Retrive a single status.

Parameters:

Parameter NameData TypeDescription
idstringThe numerical ID of the desired status.

Return Parameters:

Return VariableData TypeDescription
ResponseResponse object.

action tweet(string status)

Update the authenticated user's current status.

Parameters:

Parameter NameData TypeDescription
statusstringThe text of status update

Return Parameters:

Return VariableData TypeDescription
ResponseResponse object.

action unretweet(string id)

Untweet a retweeted status.

Parameters:

Parameter NameData TypeDescription
idstringThe numerical ID of the desired status.

Return Parameters:

Return VariableData TypeDescription
ResponseResponse object.


Menu

  • Functions
    • constructRequestHeaders(Request request, string httpMethod, string serviceEP, string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, map parameters)
  • Connectors
    • ClientConnector (string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret)
      • destroyStatus()
      • getClosestTrendLocations(string long)
      • getTopTrendsByPlace()
      • retweet()
      • search()
      • showStatus()
      • tweet()
      • unretweet()

Copyright 2017 Ballerina API Documentation