Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian König committed Dec 10, 2015
1 parent 538e141 commit de4850b
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,34 @@ The Figo Framework uses the following 3rd-party utilities, but is not exporting

Take a look at the test cases to see more examples of interaction with the API.

### Login
import Figo

let figo = FigoClient()
figo.loginWithUsername(username, password: password, clientID: clientID, clientSecret: clientSecret) { result in
self.refreshToken = result.value
}

### Retrieve all accounts
Figo.retrieveAccounts() { accounts, _ in
if let accounts = accounts {
for account in accounts {
print(account.account_id)
}
}
}
### Retrieve a single account
Figo.retrieveAccount("A1.1") { account, _ in
if let account = account {
print(account.account_id)
}
figo.retrieveAccounts() { result in
if let accounts = result.value {
self.accounts = accounts
self.tableView.reloadData()
}
}


## Installation

### Manually

* Add Figo as a git submodule by running the following command:

`$ git submodule add https://github.com/figome/ios-sdk.git`
* Open the new folder and drag the Figo.xcodeproj into the Project Navigator of your application's Xcode project.
* Select the Figo.xcodeproj in the Project Navigator and verify the deployment target matches that of your application target.
* Add the Figo.framework to your target(s) in the "Embedded Binaries" sections

### Carthage

Expand Down Expand Up @@ -88,17 +97,6 @@ Take a look at the test cases to see more examples of interaction with the API.
`$(SRCROOT)/Carthage/Build/iOS/Figo.framework`


### CocoaPods


### Manually

* Add Figo as a git submodule by running the following command:

`$ git submodule add https://github.com/figome/ios-sdk.git`
* Open the new folder and drag the Figo.xcodeproj into the Project Navigator of your application's Xcode project.
* Select the Figo.xcodeproj in the Project Navigator and verify the deployment target matches that of your application target.
* Add the Figo.framework to your target(s) in the "Embedded Binaries" sections



0 comments on commit de4850b

Please sign in to comment.