You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+62-6
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
# Teller
2
2
3
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/teller`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
-
TODO: Delete this and the text above, and describe your gem
3
+
The official Ruby language bindings for the Teller API.
Statically configuring an access token might make sense if you're just building something using your own accounts, but it doesn't if you're building something for thousands of users, which is why you can also set your config when instantiating the client.
During instantiation the client will take whatever static config you've made (if any), and apply config given to the constructor. Config values supplied at instantiation will override conflicting statically configured values.
40
+
41
+
Now you have your client configured you can use it to explore the API.
The client caches API responses after the first time you invoke a method that requests a given resource. To force the client to redo the request you can call reload
69
+
70
+
```ruby
71
+
# When called the first time the client will make a request to the Teller API
72
+
client.accounts
73
+
74
+
# On subsequent invocations locally cached data is returned
75
+
client.accounts
76
+
client.accounts
77
+
client.accounts
78
+
79
+
# Calling reload will always result in a new API request
80
+
client.accounts.reload
81
+
```
82
+
26
83
27
84
## Development
28
85
@@ -32,8 +89,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
89
33
90
## Contributing
34
91
35
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/teller.
36
-
92
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tellerhq/teller-ruby.
0 commit comments