Skip to content

Instantly share code, notes, and snippets.

View enishoca's full-sized avatar

Enis Hoca enishoca

View GitHub Profile
@enishoca
enishoca / exampleOauth.php
Created August 26, 2017 04:19 — forked from aurman/exampleOauth.php
SmartThings .php example authenticating and controlling SmartThings API endpoints
<?php
//client id and client secret
$client = ' ';
$secret = ' ';
//hardcode the full url to redirect to this file
$url = "";
//STEP 1 - Get Access Code
@enishoca
enishoca / enpointExample.groovy
Created August 19, 2017 17:02 — forked from aurman/enpointExample.groovy
SmartThings API Endpoint Example
/**
* App Endpoint API Access Example
*
* Author: SmartThings
*/
preferences {
section("Allow Endpoint to Control These Things...") {
input "switches", "capability.switch", title: "Which Switches?", multiple: true
input "locks", "capability.lock", title: "Which Locks?", multiple: true