aboutsummaryrefslogtreecommitdiffstats
path: root/meetup/src/client.rs
AgeCommit message (Collapse)Author
2018-04-15Add license (GNU GPLv3+)Teddy Wing
2018-04-15Add `Venue` type and venue field to `Event`Teddy Wing
This allows us to deserialise the venue location for events and include it in the RSS items.
2018-04-15Update tests for `Event` `Option` fieldsTeddy Wing
Now that the `description`, `local_date`, and `local_time` fields are `Option` types, we need to update the tests to reflect this or they fail terribly. I made the change in aa0190279db75f75210f5279afaa62178b242837 but forgot to update the tests.
2018-04-15meetup: Handle errors with 'error-chain'Teddy Wing
Use this instead of `Box`es. Hoping this, along with using the library in my main crate also, will help me get some more context on my runtime error. Hey, it did! Turns out the error is coming from 'serde_json'. Cool.
2018-04-14find_upcoming_events(): Try to parse data from the Meetup APITeddy Wing
* Clone the token so we can use it without a borrow error * Get the response text from our request to the API and try to parse it This gives me the following panic: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ErrorImpl { code: Message("invalid type: null, expected a sequence"), line: 0, column: 0 }', libcore/result.rs:945:5 Still trying to figure out where my problem is.
2018-04-14Move `find_upcoming_events` and `parse_json` to `Client`Teddy Wing
We'll call `find_upcoming_events` on `Client` to give us access to the token it holds.
2018-04-14meetup: Add a `Client` structTeddy Wing
This will hold our API token and provide methods to make API requests.