-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Uphold client #13
Conversation
17b3c71
to
2801939
Compare
public override init() { | ||
super.init() | ||
|
||
self.bearerToken = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The self.bearerToken = nil
is already nil
. We don't need to set it to nil
.
2801939
to
0922e07
Compare
} | ||
|
||
/** | ||
Gets all exchanges rates for all currency pairs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to Gets all the exchange rates for all currency pairs.
.
0922e07
to
af5d9a4
Compare
public class Token: BaseModel { | ||
|
||
/// The bearer token. | ||
public private(set) var bearerToken: String? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The getter should also be private.
af5d9a4
to
6187fd7
Compare
Updated @SandroMachado |
|
||
let client = UpholdClient() | ||
client.token.adapter = MockRestAdapter(body: json) | ||
client.getTickers().then { (rates: [Rate]) -> () in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line.
6187fd7
to
7810f7a
Compare
This pull request adds the Uphold client with the ticker service methods.