The Wrike API is an easy-to-use Application Programming Interface that allows users to build custom apps and other solutions to integrate with the Wrike platform. With the Wrike API, developers can access and leverage Wrike features and data to create a wide range of applications and integrations.
The possibilities are almost endless when using the Wrike API. Here are some examples:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wrike: {
type: "app",
app: "wrike",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.wrike.$auth.host}/api/v4/contacts`,
headers: {
Authorization: `Bearer ${this.wrike.$auth.oauth_access_token}`,
},
params: {
me: `true`,
},
})
},
})
Wrike uses OAuth authentication. When you connect your Wrike account, Pipedream will open a popup window where you can sign into Wrike and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Wrike API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://login.wrike.com/oauth2/authorize/v4
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://login.wrike.com/oauth2/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://login.wrike.com/oauth2/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}}