C# Класс BoxKite.Twitter.SearchExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SearchResultString ( SearchResultType searchResult ) : string

Описание методов

CreateSaveSearch() публичный статический Метод

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.
Результат Task

DeleteSavedSearch() публичный статический Метод

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.
Результат Task

GetSaveASearch() публичный статический Метод

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.
Результат Task

GetSavedSearches() публичный статический Метод

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
Результат Task>

SearchFor() публичный статический Метод

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
Результат Task

SearchFor() публичный статический Метод

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
Результат Task