A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sdeancos/clicarriots below:

sdeancos/clicarriots: The unofficial simple client for carriots platform (in progress)

clicarriots (version 0.2.0)

The unofficial simple client for carriots platform (in progress) (python 2.x/3.x)

You can find more information about carriots in http://www.carriots.com/

This client only support part of API from Carriots.com: Stream and Device.

Forum: http://forum.carriots.com/

Blog: https://blog.carriots.com/

Samuel de Ancos Martín (Core developer Carriots)

My Email: sdeancos@gmail.com

My Website: http://www.deancos.com

$ pip install clicarriots
from clicarriots import api
from datetime import datetime

client_stream = api.Stream("YOUR APIKEY")
my_at = datetime.now()
#my_at = 'now'
data = {"KEY":"VALUE"}
code, response = client_stream.send('ID_DEVELOPER_DEVICE', data, my_at, 'stream')
print(code, response)
from clicarriots import api
from datetime import datetime

client_stream = api.Stream("YOUR APIKEY")

code, response = client_stream.get("ID_DEVELOPER_Stream")
print(code, response)
from clicarriots import api
from datetime import datetime

client_stream = api.Stream("YOUR APIKEY")

#without params
code, response = client_stream.list()

#with params
code, response = client_stream.list({"device": "MY ID DEVELOPER DEVICE"})

print(code, response)
from clicarriots import api

client_dropbox = api.Dropbox("YOUR APIKEY")
code, response = client_dropbox.get("YOUR FILE IN DROPBOX", op = "all", mime = "video") 
print(code, response)
from clicarriots import api

client_device = api.Device("YOUR APIKEY")
code, response = client_device.get("ID_DEVELOPER_DEVICE")
print(code, response)
from clicarriots import api

client_device = api.Device("YOUR APIKEY")

#without params
code, response = client_device.list()

#with params
code, response = client_device.list({"name": "MY DEVICE NAME"})

print(code, response)
from clicarriots import api

client_device = api.Device("YOUR APIKEY")
data = {} # Valid json
code, response = client_device.create(data)
print(code, response)
from clicarriots import api

client_device = api.Device("YOUR APIKEY")
data = {} # Valid json
code, response = client_device.update("ID_DEVELOPER_DEVICE", data)
print(code, response)
from clicarriots import api

client_device = api.Device("YOUR APIKEY")
code, response = client_device.delete("ID_DEVELOPER_DEVICE")
print(code, response)
Example get types and sensors
from clicarriots import api

client_device = api.Device("YOUR APIKEY")

# Get Types
code, response = client_device.get_types()

# Get Sensors
code, response = client_device.get_sensors()

print(code, response)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4