One simple home system. A world of possibilities.
The Samsung SmartThings API is an open platform that enables developers to
quickly and securely connect a wide range of devices, services, and
applications to the SmartThings smart home and connected environment. With the
API, you can integrate your SmartThings-compatible products with a range of
third-party services and applications for enhanced convenience, automation, and
control.
Using the SmartThings API, you can create custom automations and routines,
helpful notifications, unique user experiences, and otherwise extend the
functionality of your SmartThings-enabled devices. You can also control your
devices with voice commands or control remotely over the internet, adding an
extra layer of convenience to your home or business.
Examples of What You Can Build with the SmartThings API
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smartthings: {
type: "app",
app: "smartthings",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smartthings.com/v1/devices`,
headers: {
Authorization: `Bearer ${this.smartthings.$auth.token}`,
},
})
},
})
The Pipedream Discord app enables you to build event-driven workflows that interact with the Discord API. When you authorize the Pipedream app's access to your guilds, you can use Pipedream workflows to perform common Discord actions, or write your own code against the Discord API.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord: {
type: "app",
app: "discord",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
Authorization: `Bearer ${this.discord.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})