GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — how to use GitHub.search() ? · Issue #367 · github-tools/github

how to use GitHub.search() ? #367

New issue
Copy link
New issue
Copy link
Closed
Closed
how to use GitHub.search() ?#367
Copy link

Description

@ssr66994053
ssr66994053
opened on Jul 21, 2016
Issue body actions

from the api docs
search() needs a string, but it needs an object?! is the docs wrong? or i am wrong?

my code :

import GitHub from 'github-api'

var gh = new GitHub();

gh.search().forRepositories({q:'react'})
.then(({data: repos}) => {
  console.log(repos)
}).catch((error) => {
  console.log('forRepositories error:', error)
})
// or 
gh.search({q:'react'}).forRepositories()
.then(({data: repos}) => {
  console.log(repos)
}).catch((error) => {
  console.log('forRepositories error:', error)
})

env:

node -v
v5.1.1

npm -v
3.3.12

but nothing print out....
and there is no example for search? can i have an example for function search ?

thanks :)

Activity

  1. ssr66994053 commented on Jul 22, 2016

    @ssr66994053
    ssr66994053
    on Jul 22, 2016
    Author
    More actions

    sorry, i was wrong.
    it worked, but very slow because of the network and search method will get all pages.

  2. ssr66994053
    closed this as completedon Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.