C# Class Rest4Net.GoogleCustomSearch.GoogleCustomSearchProvider

Inheritance: RestApiProvider
Show file Open project: acropolium/Rest4Net

Public Methods

Method Description
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

Private Methods

Method Description
CheckForError ( JToken arg ) : JToken
HasError ( IEnumerable properties ) : bool
Run ( ) : Command

Method Details

GoogleCustomSearchProvider() public method

public GoogleCustomSearchProvider ( string key, string cxCustomSearchId, bool keyIsAccessToken = false ) : System.Collections.Generic
key string
cxCustomSearchId string
keyIsAccessToken bool
return System.Collections.Generic

Search() public method

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
return SearchResult