GithubHelp home page GithubHelp logo

dleitz42 / cloudya-utils Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 17 KB

A set of python methods for Cloudya to automate configuration workflows

License: GNU General Public License v3.0

Python 100.00%
cloudya nfon pbx-api

cloudya-utils's Introduction

Cloudya Utils

This project is a set of python methods for Cloudya to automate configuration workflows instead of clicking through the products web ui.

Cloudya is a cloud based PBX product provided by the german company NFON.

Requirements

  1. Python 3
  2. Python 3 Packages: pyyaml, requests

Functions

Automate callforwardings

Write you own script

#!/usr/bin/env python3
from cloudya import Cloudya
cloudya = Cloudya(auth_user='[email protected]', auth_pass='secret')
cloudya.setup_cfp(cfp_alias='Foo', cfp_number=1, cfp_phonenumber='+49891234567')

Use existing script update_cfp.py

  1. Clone file config.yaml.dist to config.yaml
  2. Update parameters in config.yaml to yours
  3. Execute update_cfp.py
$ ./update_cfp.py
2022-04-05 01:42:26,102 INFO Login successful
2022-04-05 01:42:26,558 INFO Callforwards profile list analysed
2022-04-05 01:42:26,558 INFO Currently Active: Profile #0, Name "default", Phone "None"
2022-04-05 01:42:26,817 INFO Callforwards profile added
2022-04-05 01:42:27,046 INFO Phonenumber created
2022-04-05 01:42:27,446 INFO Phonenumber added to cfp
2022-04-05 01:42:27,724 INFO Callforwards profile 12345 activated
2022-04-05 01:42:27,997 INFO Callforwards profile list analysed
2022-04-05 01:42:27,998 INFO Currently Active: Profile #1, Name "Foo", Phone "+49 89 1234567"
2022-04-05 01:42:28,228 INFO Logout successful

License

This project is licensed under GNU General Public License v3.0

For details see LICENSE.

cloudya-utils's People

Contributors

dleitz42 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.