ruby on rails - github_api gives empty results when search by location and repos -


i using github_api gem in rails application, when sending request location or repos individual gives perfect output when send combination of both (location , repos) api gives empty results. drop logic below,

logic:

github = github.new github.search.users keyword:"location:bangalore repos:1", type:'user',ref:'searchresults' 

generated request url

https://api.github.com/legacy/user/search/location%3abangalore+repos%3a1?type=user&ref=searchresults

thanks.

i results url: https://api.github.com/legacy/user/search/location:bangalore%20repos:1

i suspect github_api isn't anticipating these kinds of keywords , not encoding fragment of url. advise try octokit official github api wrapper written in ruby. doubt have issue.

for it's worth, if need python wrapper github3.py works fine in situation well. (that's got generated url above)


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -