C# Класс Rest4Net.GoogleCustomSearch.GoogleCustomSearchProvider

Наследование: RestApiProvider
Показать файл Открыть проект

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

Метод Описание
GoogleCustomSearchProvider ( string key, string cxCustomSearchId, bool keyIsAccessToken = false ) : System.Collections.Generic
Search ( string dataToSearch, SearchParameters parameters = null ) : SearchResult

Makes a search with google API https://developers.google.com/custom-search/v1/using_rest

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

Метод Описание
CheckForError ( JToken arg ) : JToken
HasError ( IEnumerable properties ) : bool
Run ( ) : Command

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

GoogleCustomSearchProvider() публичный Метод

public GoogleCustomSearchProvider ( string key, string cxCustomSearchId, bool keyIsAccessToken = false ) : System.Collections.Generic
key string
cxCustomSearchId string
keyIsAccessToken bool
Результат System.Collections.Generic

Search() публичный Метод

Makes a search with google API https://developers.google.com/custom-search/v1/using_rest
public Search ( string dataToSearch, SearchParameters parameters = null ) : SearchResult
dataToSearch string actually Query String
parameters SearchParameters number of search parameters like described at https://developers.google.com/custom-search/v1/using_rest#query-params
Результат SearchResult