Skip to content

Commit 0382d37

Browse files
author
Travis CI User
committed
Version 0.4.3
1 parent 004fc0f commit 0382d37

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

doc/customer.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fun signUp() {
6969

7070
## Sign In
7171

72-
Sign the user in using existing credentials
72+
Sign in the user in using existing credentials
7373

7474
```kotlin
7575
fun login() {
@@ -84,6 +84,18 @@ fun login() {
8484
}
8585
```
8686

87+
## Sign In with Token
88+
89+
Sign in the user with a previously obtained customer API token
90+
91+
```kotlin
92+
fun loginWithToken() {
93+
FlyBuy.customer.loginWithToken("token") { customer, sdkError ->
94+
// Handle customer or deal with error
95+
}
96+
}
97+
```
98+
8799
## Sign out the current Customer
88100

89101
Signs out the current customer.

doc/orders.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,23 @@ fun updateOrder() {
7878

7979
## Get Orders
8080

81-
Returns the cached list of orders for the current user. This may not be accessed directly from the main thread.
81+
Returns the cached list of orders for the current user.
8282

8383
```kotlin
8484
FlyBuy.orders.all
8585
```
8686

8787
## Get Open Orders
8888

89-
Returns the cached list of open orders for the current user. This may not be accessed directly from the main thread.
89+
Returns the cached list of open orders for the current user.
9090

9191
```kotlin
9292
FlyBuy.orders.open
9393
```
9494

9595
## Get Closed Orders
9696

97-
Returns the cached list of closed orders for the current user. This may not be accessed directly from the main thread.
97+
Returns the cached list of closed orders for the current user.
9898

9999
```kotlin
100100
FlyBuy.orders.closed

0 commit comments

Comments
 (0)