Range can help you build great products by making it easy to store, version control, and collaborate on code and designs. The Range API is a powerful tool that you can use to build amazing products. Here are some examples of what you can build using Range's API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
range: {
type: "app",
app: "range",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.range.co/v1/users/auth-user`,
headers: {
Authorization: `Bearer ${this.range.$auth.oauth_access_token}`,
"X-Range-App-ID": `AA0BFrfWOpGg8rTpgQAB`,
"X-Range-Client": `pipedream/1`,
},
})
},
})
Emit new event when a new check-in by teammate is created. See the docs.
Range uses OAuth authentication. When you connect your Range account, Pipedream will open a popup window where you can sign into Range and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Range API.
Pipedream requests the following authorization scopes when you connect your account:
default
GET
https://api.range.co/v1/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://api.range.co/v1/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://api.range.co/v1/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}}