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
+37-31Lines changed: 37 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
This Framework wraps the figo Connect API endpoints in nicely typed Swift functions and types for your conveniece.
5
5
6
6
- We don't support Swift versions older than 3.0
7
-
-We are working on support for other platforms than iOS
7
+
-Supports iOS and macOS
8
8
9
9
10
10
## figo Connect API
@@ -39,13 +39,10 @@ Integrate the framework into your project:
39
39
* Select the Figo.xcodeproj in the Project Navigator and verify the deployment target matches that of your application target.
40
40
* Add the Figo.framework to your target(s) in the "Embedded Binaries" sections
41
41
42
-
### Carthage
43
-
44
-
We are working on bringing back Carthage support
45
42
46
43
## Usage
47
44
48
-
After creating an instance of `FigoClient` you can call functions on it representing the API endpoints. These functions will always return a `Result<T>`, where `T` will a corresponding type like `Account`, `[Account]` or `[Transaction]`.
45
+
After creating an instance of `FigoClient` you can call functions on it representing the API endpoints. These functions will always return a `FigoResult<T>`, where `T` will a corresponding type like `Account`, `[Account]` or `[Transaction]`.
49
46
50
47
import Figo
51
48
let figo = FigoClient()
@@ -88,11 +85,20 @@ To be able to login and use the figo API a user is required.
88
85
}
89
86
}
90
87
91
-
### Enable logging
88
+
### Logging
89
+
90
+
For now we have a very simple logging solution. By default logging is disabled. If you want to enable logging, you can pass a logger instance to the `FigoClient`.
91
+
92
+
let figo = FigoClient(logger: ConsoleLogger())
93
+
94
+
If you want control of what is logged or how, you can provide your own instance that conforms to the `Logger` protocol.
92
95
93
-
Since the `FigoClient` by default uses the default instance of `XCGLogger`, you can control logging from wherever you like. You can also provide your own `XCGLogger` instance in the initializer.
@@ -101,16 +107,16 @@ Since the `FigoClient` by default uses the default instance of `XCGLogger`, you
101
107
102
108
The central element of this API is the figo user, who owns bank accounts and grants selective access to them to other applications. This account can either be a free or a premium account. While both support the same set of features, the free account can only be used with the application through it got created, while a premium account can be used in all applications integrating figo.
@@ -120,18 +126,18 @@ The figo API uses OAuth 2 for authentication purposes and you need a user to log
120
126
121
127
Bank accounts are the central domain object of this API and the main anchor point for many of the other resources. This API does not only consider classical bank accounts as account, but also alternative banking services, e.g. credit cards or Paypal. The API does not distinguish between these two in most points.
Each bank account has a list of transactions associated with it. The length of this list depends on the bank and time this account has been setup. In general the information provided for each transaction should be roughly similar to the contents of the printed or online transaction statement available from the respective bank. Please note that not all banks provide the same level of detail.
@@ -147,9 +153,9 @@ Usually the bank accounts are synchronized on a daily basis. However, the synchr
147
153
148
154
To set up a new bank account in figo, you need to provide the right kind of credentials for each bank. These settings can be retrieved from the API aswell as a list of all supported banks and bank-like services.
@@ -159,29 +165,29 @@ Submitting a new payment generally is a two-phased process: 1. compile all infor
159
165
160
166
While the first part is normal live interaction with this API, the second one uses the task processing system to allow for more time as bank servers are sometimes slow to respond. In addition you will need a TAN (Transaktionsnummer) from your bank to authenticate the submission.
Each depot account has a list of securities associated with it. In general the information provided for each security should be roughly similar to the contents of the printed or online depot listings available from the respective bank. Please note that not all banks provide the same level of detail.
Bank accounts can have standing orders associated with it if supported by the respective bank. In general the information provided for each standing order should be roughly similar to the content of the printed or online standing order statement available from the respective bank. Please note that not all banks provide the same level of detail.
0 commit comments