52 releases (1 stable)

1.1.0 Mar 29, 2024
1.0.0-rc.14 Oct 12, 2023
1.0.0-rc.13 May 31, 2023
1.0.0-rc.8 Mar 14, 2023
0.3.15 Mar 6, 2020

#258 in Web programming

Download history 17/week @ 2024-02-14 104/week @ 2024-02-21 6/week @ 2024-02-28 4/week @ 2024-03-06 10/week @ 2024-03-13 7/week @ 2024-03-20 180/week @ 2024-03-27 30/week @ 2024-04-03 19/week @ 2024-04-10

236 downloads per month

MIT license

420KB
11K SLoC

Billecta-rs

UNOFFICIAL

Not supported by Billecta in anyway!

Automatically generated API for billecta.

To get started see Billecta docs

Creating a SecureToken

1. Retreive SecureToken

To begin, encode your username and password as follows:

$ echo -n "<username>:<password>" | base64

$ base64 <<< "<username>:<password>" cannot be used since it adds a newline.

2. Retreive your SecureToken

Send the encoded b64-string to Billecta with the b64-string you just created in the Authorization Header as such: Authorization: Basic <b64string>

curl -X "POST" https://api.billecta.com/v1/authentication/apiauthenticate -H "Content-Length:0" -H "Authorization: Basic <b64 string>" -H "Accept: application/json"

3. Encode the SecureToken

Snatch the SecureToken from the returned data and encode it as b64 once more:

$ base64 <<< <SecureTokenString>

4. Do API things

To try it out try to fetch all Creditor with the b64 encode SecureToken in the Authorization header

curl -X "POST" https://api.billecta.com/v1/creditors/creditors -H "Authorization: SecureToken <SecureTokenB64>"

Dependencies

~6–20MB
~280K SLoC