aboutsummaryrefslogtreecommitdiffstats
path: root/meetup
diff options
context:
space:
mode:
authorTeddy Wing2018-04-14 16:38:18 +0200
committerTeddy Wing2018-04-14 17:04:42 +0200
commit30de99f041fec5d749c914225d8152a485731acd (patch)
treeb04f5abf1f03a5eb71728bd901dc5b4e1bf52f98 /meetup
parent6a6c988c16ab2a709575752d759df7ba6b8e1e81 (diff)
downloadmeetup-find-events-rss-30de99f041fec5d749c914225d8152a485731acd.tar.bz2
meetup: Add a `Client` struct
This will hold our API token and provide methods to make API requests.
Diffstat (limited to 'meetup')
-rw-r--r--meetup/src/client.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/meetup/src/client.rs b/meetup/src/client.rs
new file mode 100644
index 0000000..4510eb3
--- /dev/null
+++ b/meetup/src/client.rs
@@ -0,0 +1,9 @@
+pub struct Client {
+ pub token: String,
+}
+
+impl Client {
+ pub fn new(token: String) -> Client {
+ Client { token: token }
+ }
+}