Recipes

Python SDK

5min
  1. Install the SDK Set up virtual environment and install SDK.
  2. Get your API key You can sign up for free at https://ui.amberflo.io/ to get an API key and start testing.
Python


3. Set up the Customer API client - You can use it to manage your customers. Meter records are associated with customers.

Python


4. Create a customer

Python


5. Set up Ingest API client By default, it will collect the meter records and send them in batches asynchronously.

Python


6. Send a meter record Meter records will be collected in batches and sent asynchronously.

Python


7. Shut down Ingest API client This is a blocking call that ensures all batches have been sent. Use it in your server shutdown procedure.

Python


8. Set up Usage API client

Python


9. Get a usage report

Python




Updated 11 Sep 2024
Doc contributor
Doc contributor
Did this page help you?