The RemoteLock API offers a platform to control and monitor physical access to properties by managing locks and users remotely. This API allows for the integration of lock management into custom applications, enabling automation in granting access, tracking entry, and ensuring security. Leveraging this with Pipedream's serverless platform, users can create automations that react to various triggers, like scheduling access for guests or syncing access permissions with property management systems.
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`,
},
})
},
})
Scheduled Access for Short-Term Rentals
Automate the generation of access codes for guests based on short-term rental bookings from platforms like Airbnb. When a new booking is detected in the rental platform, generate a unique code via RemoteLock and send it to the guest.
Employee Onboarding and Offboarding
Streamline the process of granting or revoking building access as part of HR workflows. When an employee is added to or removed from the company's HR system, automatically update their access permissions in RemoteLock.
Sync Access Codes with Event Registrations
For event spaces that use RemoteLock, create a workflow that syncs attendee registration from an event management app like Eventbrite. Generate and send personalized access codes to attendees before the event.
RemoteLock uses OAuth authentication. When you connect your RemoteLock account, Pipedream will open a popup window where you can sign into RemoteLock and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any RemoteLock API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://connect.remotelock.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://connect.remotelock.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://connect.remotelock.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}