Movatterモバイル変換


[0]ホーム

URL:


Search

Search

Wrap the Search API

Constructor

new Search(defaults, authopt, apiBaseopt)

Create a Search

Parameters:
NameTypeAttributesDefaultDescription
defaultsObject

defaults for the search

authRequestable.auth <optional>

information required to authenticate to Github

apiBasestring <optional>
https://api.github.com

the base Github API URL

Source:

Methods

forCode(optionsopt, cbopt) → {Promise}

Search for code

Parameters:
NameTypeAttributesDescription
optionsSearch.Params <optional>

additional parameters for the search

cbRequestable.callback <optional>

will receive the results of the search

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

forIssues(optionsopt, cbopt) → {Promise}

Search for issues

Parameters:
NameTypeAttributesDescription
optionsSearch.Params <optional>

additional parameters for the search

cbRequestable.callback <optional>

will receive the results of the search

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

forRepositories(optionsopt, cbopt) → {Promise}

Search for repositories

Parameters:
NameTypeAttributesDescription
optionsSearch.Params <optional>

additional parameters for the search

cbRequestable.callback <optional>

will receive the results of the search

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

forUsers(optionsopt, cbopt) → {Promise}

Search for users

Parameters:
NameTypeAttributesDescription
optionsSearch.Params <optional>

additional parameters for the search

cbRequestable.callback <optional>

will receive the results of the search

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

Type Definitions

Params

Available search options

Type:
Source:
See:


[8]ページ先頭

©2009-2025 Movatter.jp