Giter Site home page Giter Site logo

skyroom-python's Introduction

skyroom-python

A library to ease skyroom api usage.

Link to api documentation: Skyroom RESTful API Documention

Installation

You can install this SDK from pypi through the command below

pip install skyroom

In order to use the api you need an API key. To obtain one you need to create an account on Skyroom and ask for your API key from the skyroom support.

Usage

Here are some examples for api usage(all methods use the same signature).

getRooms

from skyroom import *
try:
    api = SkyroomAPI('Your APIKey') # Example: apikey-71-819540-0f178abb0c712c4cfd5ae13e4c54687a
    response = api.getRooms()
    print(response)
except APIException as e: 
    print(e)
except HTTPException as e: 
    print(e)

getRoom

from skyroom import *
try:
    api = SkyroomAPI('Your APIKey') # Example: apikey-71-819540-0f178abb0c712c4cfd5ae13e4c54687a
    params = {
        'room_id': 1
    }
    response = api.getRoom(params)
    print(response)
except APIException as e: 
    print(e)
except HTTPException as e: 
    print(e)

getRoomUrl

from skyroom import *
try:
    api = SkyroomAPI('Your APIKey') # Example: apikey-71-819540-0f178abb0c712c4cfd5ae13e4c54687a
    params = {
        "room_id": 1,
        "language": "fa"
    }
    response = api.getRoomUrl(params)
    print(response)
except APIException as e: 
    print(e)
except HTTPException as e: 
    print(e)

Contribution

I no longer use this library in my code. If there are any updates on the upstream from skyroom you can add support for it by opening a pull request.

Anyways, Bug fixes, docs, and enhancements are allways welcome! just open an issue.

skyroom-python's People

Contributors

ariamoradi avatar therealak12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

skyroom-python's Issues

مشکل در ایجاد کاربر با کاراکترهای فارسی

وقتی که متد
createUser
با پارامتری که دارای عبارات فارسی باشه فراخوانی بشه ارور با استاتوس 14 میده که نام کاربری باید بیشتر از 2 حرف و شامل حروف و اعداد باشه

params = {"username": "تست", 'password': "12345", 'nickname': "تستتست", 'status': 1, 'is_public': False}

Refactoring whole project

کل پکیج باید یه ریفکتور اساسی بشه و ساختارش عوض شه
خوده اسکایروم برای توسعه این پکیج،‌توکن میده؟
اگه اسکایروم توکن تست میده و مایل باشید تغییرات جدید رو شروع کنم و یه دستی به کد بکشم.

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.