Git Product home page Git Product logo

samsung-smartthings-custom-rest-api's Introduction

Samsung-Smartthings-Custom-Rest-API

Custom Rest API for Samsung Smartthings

Web Service (Rest) for Samsung Smartthings

Installation:

1 - Connect to: https://graph.api.smartthings.com/ide/apps

2 - Click the button "New SmartApp"

3 - Select the "From Code" tab

4 - copy paste the content of the code.groovy file into the window

5 - click next: that's it, the SmartApp should be created

Usage:

1 - While in the App, click the "Publish" Button (then click "For Me") 2 - your app should now be active.. 3 - locate your App ID and your Authorization Token: App ID example: ffffffff-ffff-ffff-ffff-ffffffffffff Authorization Token example: Bearer ffffffff-ffff-ffff-ffff-ffffffffffff

=> note: the App ID and Auth Token are different...

4 - Invoke Rest Calls:

Type: GET Headers: Authorization: Bearer ffffffff-ffff-ffff-ffff-ffffffffffff https://graph.api.smartthings.com/api/smartapps/installations//

Examples of Endpoints:

  • /contacts (get devices that have contacts attributes)

  • /events/contacts (get all contact type events)

  • /events/contacts?id= (Get all Contact Events for 1 specific device)

  • /motions

  • /events/motions

  • /events/motions?id=<>

  • /locks

  • /events/locks

  • /events/locks?id=

  • /lux

  • /events/lux

  • /events/lux?id=

  • /colors

  • /events/colors

  • /events/colors?id=

  • /alarms

  • /events/alarms

  • /events/alarms?id=

  • /switches

  • /events/switches

  • /events/switches?id=

  • /temperatures

  • /events/temperatures

  • /events/temperatures?id=

  • /shocks

  • /events/shocks

  • /events/shocks?id=

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.