Wifi Smart Locks for Business and Rentals
Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.
Turn your locks into a smart lock system with RemoteLock. The RemoteLock API
enables users to build access control solutions for a variety of environments,
making controlling access easier than ever. With the RemoteLock API, users can
develop:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
remotelock: {
type: "app",
app: "remotelock",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.remotelock.com/user`,
headers: {
Authorization: `Bearer ${this.remotelock.$auth.oauth_access_token}`,
"Accept": `application/vnd.lockstate.v1+json`,
},
})
},
})
package main
import (
"fmt"
pd "github.com/PipedreamHQ/pipedream-go"
)
func main() {
// Access previous step data using pd.Steps
fmt.Println(pd.Steps)
// Export data using pd.Export
data := make(map[string]interface{})
data["name"] = "Luke"
pd.Export("data", data)
}