Se habla español.
unrob / couchsurfing-api Goto Github PK
View Code? Open in Web Editor NEWA simple API for CouchSurfing.org
Home Page: https://rubygems.org/gems/CSApi
License: Do What The F*ck You Want To Public License
A simple API for CouchSurfing.org
Home Page: https://rubygems.org/gems/CSApi
License: Do What The F*ck You Want To Public License
Hi,
I know that this has been an issue before, but I guess one that wasn't solved completely, or the CS site has changed.
Anyway, are you still looking into figuring out the pagination issue for search?
As it stands now, it looks like you can only get 10 users from search with the same options.
I'm looking into it, but have almost no idea what I am doing =p.
The pagination is triggered by this div though when you scroll on the web site.
https://gist.github.com/jphager2/326655e665e135c6597f
John
Hey -- awesome work! This should make surfing much easier!
Any idea how to send messages using the CS api?
I'd like to do a search and automatically hit up hosts that meet my criteria.
Thanks!
Hi Rob!
First, let me say your API has an amazing functionality!
Q: Where in the code do I put in my username and password?
I'm not strong in Ruby programming, but from what I see in the example file,
it has something to do with the "initialize" module in /lib/CSApi.rb -
def initialize(username, password)
@username = username
r = HTTP.post('/sessions', body:{username: username, password: password}.to_json)
raise CS::AuthError.new("Could not login") if r.code != 200
@cookies = []
@cookies=r.headers['Set-Cookie'].split(/;/).first
#end
Can you please help?
Thanks!
Dor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.