Metadata-Version: 2.1
Name: kard-private-api
Version: 2.1
Summary: Control and Automate your Kard account
Home-page: https://github.com/ghrlt/kard-private-api
Author: Gaëtan Hrlt
Author-email: gaetan.hrlt+dev@gmail.com
Project-URL: Developer website, https://ghr.lt?f=kard-private-api
Project-URL: Bug Tracker, https://github.com/ghrlt/kard-private-api/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Kard Private Api
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
![](https://komarev.com/ghpvc/?username=ghrlt-kard-private-api&color=brightgreen&label=Repository%20views)  

Python wrapper of Kard neobank private API

Made with the help [HTTP Toolkit](https://httptoolkit.tech/) for trafic sniffing <3 It's an awesome tool!


## Installation
`pip install kard-private-api`

Either create a file named `secrets.json` in your working directory, with the following content:
```json
{
	"vendorIdentifier": null,
	"userAgent": "ghrlt/kard-private-api /v2.1",
	"accessToken": null,
	"refreshToken": null,
	"accountPin": "Your pin (0000)",
	"accountTel": "Your phone number (06 00 00 00 00)"
}
```
or don't, and input them in your console when asked.


## Usage
```python
import kard_private_api as kardapi

k = kardapi.Kard()
k.init()

...

```

**You are ready!**<br>
Start with some examples [here](https://github.com/ghrlt/kard-private-api/tree/master/examples)


## FAQ
#### How does it login to my Kard account?

The login processus include:
	- Generating a unique identifier, linked to your account
	- If new uid, confirm sms otp, else pass
	- Confirm PIN code
Then, and only then, we have the `accessToken` and `refreshToken`, which is your account sesame.

The wrapper will automatically create and store your uid and obtain and store your tokens, in the current working directory


## License

This repository and all of its content is under the [GNU GPLv3](https://github.com/ghrlt/kard-private-api/blob/master/LICENSE) license.


## Disclaimer
I shall not, and will not be liable for any misuse or unauthorised use, leading or not to damage to any third-party.
This API is to be used for educational purposes only.


## Support me
<a href="https://s.kard.eu/ghrlt/5.0"><img alt="Support me through bank card" src="https://www.svgrepo.com/show/301678/piggybank-pig.svg" href="https://s.kard.eu/ghrlt/5.0" width="40" height="40"></a>
<a href="https://discord.gg/cQY9hc7XHm"><img alt="Send me a Discord Nitro" src="https://discord.com/assets/f8389ca1a741a115313bede9ac02e2c0.svg" href="https://discord.gg/cQY9hc7XHm" width="40" height="40"></a>
<a href="https://kard.eu?r=GAEHER"><img alt="Subscribe to Kard" src="https://uploads-ssl.webflow.com/5fc53498e2555190106eb531/5fc5a6996e50deb8447505e4_logo-purple.svg" href="https://kard.eu?r=GAEHER" width="40" height="40"></a>
