Samsung SmartThings

One simple home system. A world of possibilities.

Integrate the Samsung SmartThings API with the Discord API

Setup the Samsung SmartThings API trigger to run a workflow which integrates with the Discord API. Pipedream's integration platform allows you to integrate Samsung SmartThings and Discord remarkably fast. Free for developers.

New Message (Instant) from the Discord API

Emit new event for each message posted to one or more channels in a Discord server

 
Try it
Message Deleted (Instant) from the Discord API

Emit new event for each message deleted

 
Try it
New Command Received (Instant) from the Discord API

Emit new event for each command posted to one or more channels in a Discord server

 
Try it
New Guild Member (Instant) from the Discord API

Emit new event for each new member added to a guild

 
Try it
New Guild Member (Instant) from the Discord API

Emit new event for each new member added to a guild

 
Try it
Send Message with the Discord API

Send a simple message to a Discord channel

 
Try it
Send Message (Advanced) with the Discord API

Send a simple or structured message (using embeds) to a Discord channel

 
Try it
Send Message With File with the Discord API

Post a message with an attached file

 
Try it

Overview of Samsung SmartThings

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

  • Automatically adjust the temperature of your thermostat when motion is
    detected in a certain room
  • Set up lights to turn off when you leave the room
  • Display your garden’s temperature and weather conditions on a mobile app
  • Set connected appliances to run at certain times and even synchronize them
    with a calendar
  • Control the lighting around your home from your smartphone
  • Receive notifications when doors and windows are opened
  • Create a security system by connecting detectors and cameras
  • Automate the lock on your doors based on the location of your smartphone
  • Track your energy usage and set energy-saving schedules for connected
    appliances
  • Receive personalized alerts about air quality based on changes in the
    environment.

Connect Samsung SmartThings

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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}`,
      },
    })
  },
})

Overview of Discord

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.

Connect Discord

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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`,
      },
    })
  },
})