The pCloud API allows you to build a variety of products and applications that integrate with the pCloud service. With the pCloud API, you can get access to a wide range of features, including:
With pCloud, you can easily build:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pcloud: {
type: "app",
app: "pcloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.pcloud.$auth.hostname}/userinfo`,
headers: {
Authorization: `Bearer ${this.pcloud.$auth.oauth_access_token}`,
},
})
},
})
Emit new event when a file is created or modified in the specified folder.
pCloud uses OAuth authentication. When you connect your pCloud account, Pipedream will open a popup window where you can sign into pCloud and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any pCloud API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://my.pcloud.com/oauth2/authorize
?
client_id={{custom_fields.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
permissions=manageshares
POST
https://{{custom_fields.hostname}}/oauth2_token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
code={{oauth.code}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code