Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

bluecats-python-dman-api-client

The bcdmanpiclient module allows you to interact with the BlueCats API using Python.

Getting Started

This section will outline how to clone the repo and install the bcdmanpiclient module.

Prerequisites

  • python (2.7)
  • pip (for python 2.7)

Installing

Navigate to your base directory and run the following.


git clone https://github.com/bluecats/bluecats-python-dman-api-client.git
cd bluecats-python-dman-api-client
pip install .

Once you install the module, you will need to give the API credentials.

Obtaining Credentials

To obtain those credentials:

  1. Go to the BlueCats Web App
  2. Go to the app tab then "Create a new app"
  3. Give a name to your app.
  4. Select the platform: API Client
  5. Once you create your app, click "Show App Token/Secret"
  6. Click "Reset Client Secret"
  7. Write down the Client Id and Client Secret

Add your client id and client secret as strings in the file "client_config.json" found in your examples configs folder. For example:

{
	
"client_id": "{client_id}",
"client_secret": "{client_secret}"

}

Save that file and now you are ready to run the module.

To see an example of using bcdmanapiclient, go to the examples folder. In your favorite python interpreter run the script "fan_out_beacons.py" or run this command in your terminal.


cd examples 
python fan_out_beacons.py 

This is a very simple example to show you how to use the BlueCats API. If you have any questions email: ernie@bluecats.com

About

No description, website, or topics provided.

Resources

Packages

No packages published

Languages