C# Class BoxKite.Twitter.SearchExtensions

Datei anzeigen Open project: nickhodge/BoxKite.Twitter

Public Methods

Method Description
CreateSaveSearch ( this session, string searchText ) : Task

Saves a search

ref: https://dev.twitter.com/docs/api/1.1/post/saved_searches/create

DeleteSavedSearch ( this session, string SavedSearchId ) : Task

Creates a saved search

ref: https://dev.twitter.com/docs/api/1.1/post/saved_searches/destroy/%3Aid

GetSaveASearch ( this session, string id ) : Task

Retrieve the information for the saved search represented by the given id.

ref: https://dev.twitter.com/docs/api/1.1/get/saved_searches/show/%3Aid

GetSavedSearches ( this session ) : Task>

Returns the authenticated user's saved search queries.

ref: https://dev.twitter.com/docs/api/1.1/get/saved_searches/list

SearchFor ( this session, string searchText, SearchResultType searchResponseType, double latitude, double longitude, double distance, string distanceUnits = "km", long maxId, long sinceId, string untilDate = "", int count = 20 ) : Task

Geotagged dedicated API for running searches against the real-time index of recent Tweets. 6-9 days

ref: https://dev.twitter.com/docs/api/1.1/get/search/tweets

SearchFor ( this session, string searchText, SearchResultType searchResponseType, long maxId, long sinceId, string untilDate = "", int count = 20 ) : Task

dedicated API for running searches against the real-time index of recent Tweets. 6-9 days of historical data

ref: https://dev.twitter.com/docs/api/1.1/get/search/tweets

Private Methods

Method Description
SearchResultString ( SearchResultType searchResult ) : string

Method Details

CreateSaveSearch() public static method

Saves a search
ref: https://dev.twitter.com/docs/api/1.1/post/saved_searches/create
public static CreateSaveSearch ( this session, string searchText ) : Task
session this
searchText string search query of 1,000 characters maximum, including operators. Queries may additionally be limited by complexity.
return Task

DeleteSavedSearch() public static method

Creates a saved search
ref: https://dev.twitter.com/docs/api/1.1/post/saved_searches/destroy/%3Aid
public static DeleteSavedSearch ( this session, string SavedSearchId ) : Task
session this
SavedSearchId string The ID of the saved search.
return Task

GetSaveASearch() public static method

Retrieve the information for the saved search represented by the given id.
ref: https://dev.twitter.com/docs/api/1.1/get/saved_searches/show/%3Aid
public static GetSaveASearch ( this session, string id ) : Task
session this
id string The ID of the saved search.
return Task

GetSavedSearches() public static method

Returns the authenticated user's saved search queries.
ref: https://dev.twitter.com/docs/api/1.1/get/saved_searches/list
public static GetSavedSearches ( this session ) : Task>
session this
return Task>

SearchFor() public static method

Geotagged dedicated API for running searches against the real-time index of recent Tweets. 6-9 days
ref: https://dev.twitter.com/docs/api/1.1/get/search/tweets
public static SearchFor ( this session, string searchText, SearchResultType searchResponseType, double latitude, double longitude, double distance, string distanceUnits = "km", long maxId, long sinceId, string untilDate = "", int count = 20 ) : Task
session this
searchText string search query of 1,000 characters maximum, including operators. Queries may additionally be limited by complexity.
searchResponseType SearchResultType SearchResult.Mixed (default), SearchResult.Recent, SearchResult.Popular
latitude double Returns tweets by users located within a given radius of the given latitude/longitude.
longitude double Returns tweets by users located within a given radius of the given latitude/longitude.
distance double Returns tweets by users located within a given radius of the given latitude/longitude.
distanceUnits string km (default) or mi
maxId long
sinceId long
untilDate string YYYY-MM-DD format
count int Tweets to return Default 20
return Task

SearchFor() public static method

dedicated API for running searches against the real-time index of recent Tweets. 6-9 days of historical data
ref: https://dev.twitter.com/docs/api/1.1/get/search/tweets
public static SearchFor ( this session, string searchText, SearchResultType searchResponseType, long maxId, long sinceId, string untilDate = "", int count = 20 ) : Task
session this
searchText string search query of 1,000 characters maximum, including operators. Queries may additionally be limited by complexity.
searchResponseType SearchResultType SearchResult.Mixed (default), SearchResult.Recent, SearchResult.Popular
maxId long
sinceId long
untilDate string YYYY-MM-DD format
count int Tweets to return Default 20
return Task