Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Client for access API rdstation.

Project description

RDStation-client

Current version at PyPI Downloads current version Supported Python Versions Build Status codecov License: LGPLv3

Client for access API rdstation.

Installation

The easiest way to getting the hands dirty is install rdstation-client, using pip.

PyPI

Usage

Install

pip install rdstation-client

Create file auth rdstation_client.json

Vide: https://developers.rdstation.com/en/overview

{
  "client_id": "049bf777-bbbb-0000-9e09-7ebe2972b8b0",
  "client_secret": "952e14d9dbad9c28d2247da9a19645d8",
  "redirect_url": "https://appname.org/auth/callback"
}

Python code example:

from rdstation_client import RDStationClient
rdsc = RDStationClient('/home/var/rdstation_client.json')
rdsc.account_info_get()
# Visite link
# Enter CODE in url param
print(rdsc.contacts_patch(
    {
        "name": "RD Station Developer",
        "email": "contact@example.com",
        "job_title": "Developer",
        "bio": "This documentation explains the RD Station API.",
        "website": "https://developers.rdstation.com/",
        "linkedin": "rd_station",
        "personal_phone": "+55 48 3037-3600",
        "city": "Florianópolis",
        "state": "SC",
        "country": "Brasil",
        "tags": ["developer", "rdstation", "api"]
    }
))

Contribution start guide

The preferred way to start contributing for the project is creating a virtualenv (you can do by using virtualenv, virtualenvwrapper, pyenv or whatever tool you'd like).

Create the virtualenv:

mkvirtualenv rdstation-client

Install development dependencies:

pip install -r requirements-development.txt

Use py.test

py.test --verbose --assert=plain --color=yes --cov-report=term-missing --cov=rdstation_client tests/

Use pep8

pycodestyle rdstation_client tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rdstation-client, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size rdstation_client-0.0.10-py3-none-any.whl (20.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rdstation-client-0.0.10.tar.gz (20.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page