The Bitport API allows you to integrate cloud torrent downloads into your apps and workflows. With Bitport, you can fetch torrents to a secure cloud location and stream them online. This opens up possibilities for automating downloads, orchestrating media collection, or even building custom alerts for completed torrent downloads. On Pipedream, you can connect the Bitport API to various other services to create powerful automation workflows. For instance, you could trigger downloads with webhooks, organize files with cloud storage services, or send notifications through communication platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitport: {
type: "app",
app: "bitport",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bitport.io/v2/me`,
headers: {
Authorization: `Bearer ${this.bitport.$auth.oauth_access_token}`,
},
})
},
})
Automated Torrent Downloading on New RSS Feed Item: When an RSS feed updates with new content that you're tracking (say, a weekly podcast or video series), you could automatically initiate a torrent download to your Bitport cloud storage. This way, you ensure you never miss an episode and can access it securely from anywhere.
Organizing Downloaded Media with Cloud Storage: After a torrent download is complete, you can move the file to specific folders in Google Drive or Dropbox based on the media type or other characteristics. This helps keep your cloud storage organized without manual intervention.
Notification System for Completed Downloads: Set up a workflow that sends a notification via email, SMS, or a platform like Slack whenever a Bitport download finishes. This alert can help you stay informed about your downloads without constantly checking the status manually.
Bitport uses OAuth authentication. When you connect your Bitport account, Pipedream will open a popup window where you can sign into Bitport and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Bitport API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://api.bitport.io/v2/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
POST
https://api.bitport.io/v2/oauth2/access-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}}