Action - AmayaHena/AreaDocumentation GitHub Wiki
Resume of Action
On this page you'll find documentation about the following actions:
- New video / live on youtube
- Change on old youtube video
- Like on a youtube video
- Dislike on a youtube video
- Get the track the most popular on Spotify
- Get the latest release on Spotify
- Get the latest release on Spotify for a given artist
New post on a subreddit
Detect a new post on a subreddit:
"Action": {
"actionType": "NewRedditPost",
"subreddit": "$RVsubreddit"
}
Details about RV values:
RVsubreddit:
Definition: Name of the subreddit
Value: string
Example:
"Action": {
"actionType": "NewRedditPost",
"subreddit": "AskReddit"
}
New comment on a reddit post
Detect a new comment on a reddit post:
"Action": {
"actionType": "NewRedditCom",
"subreddit": "$RVsubreddit",
"postid": "$RVpostid"
}
Details about RV values:
RVsubreddit:
Definition: Name of the subreddit
Value: string
RVpostid:
Definition: Post id, can be found in the url
Value: string
Example:
"Action": {
"actionType": "NewReddiCom",
"subreddit": "AskReddit",
"postid": "lh5aul"
}
New user action on reddit
Detect a new action from a user on a reddit post:
"Action": {
"actionType": "NewRedditUserAction",
"user": "$RVuser"
}
Details about RV values:
RVuser:
Definition: Name of the user to stalk
Value: string
Example:
"Action": {
"actionType": "NewRedditUserAction",
"user": "AmayaHena"
}
Youtube
New video / live on youtube
Detect a new video / live from a user on youtube:
"Action": {
"actionType": "NewYoutubeVideo",
"id": "$RVid"
}
Details about RV values:
RVid:
Definition: id of the youtube channel
Value: string
Example:
"Action": {
"actionType": "NewYoutubeVideo",
"id": "UCTEKkDX7lafQVnJrqu55jrA"
}
Change on old youtube video
Detect change on old youtube video from a user on youtube:
"Action": {
"actionType": "NewChangeOldVideo",
"channel_id": "$RVchannel_id",
"video_id": "$RVvideo_id",
}
Details about RV values:
RVchannel_id:
Definition: id of the youtube channel
Value: string
RVvideo_id:
Definition: id of the youtube video
Value: string
Example:
"Action": {
"actionType": "NewYoutubeVideo",
"channel_id": "UC_yP2DpIgs5Y1uWC0T03Chw",
"video_id": "qQtwAU6_8c4"
}
Like on a youtube video
Detect a new like on a youtube video made by the owner of the account:
WARNING: This action require google oauth2 on the account or it will be ignored.
"Action": {
"actionType": "NewLikeYoutube"
}
Example:
"Action": {
"actionType": "NewLikeYoutube"
}
Dislike on a youtube video
Detect a new dislike on a youtube video made by the owner of the account:
WARNING: This action require google oauth2 on the account or it will be ignored.
"Action": {
"actionType": "NewDislikeYoutube"
}
Example:
"Action": {
"actionType": "NewDislikeYoutube"
}
GMail
Detect a new mail
Detect a new mail sent to Gmail address linked by google oauth2:
WARNING: This action require google oauth2 on the account or it will be ignored.
"Action": {
"actionType": "NewMailGMail"
}
Example:
"Action": {
"actionType": "NewMailGMail"
}
Detect a new mail with a specific subject
Detect a new mail with a specific object sent to Gmail address linked by google oauth2:
WARNING: This action require google oauth2 on the account or it will be ignored.
"Action": {
"actionType": "NewMailWObjGMail",
"SubjectTarget": "$RVSubjectTarget"
}
Details about RV values:
RVSubjectTarget:
Definition: the subject of the mail to look for
Value: string
Example:
"Action": {
"actionType": "NewMailWObjGMail",
"SubjectTarget": "EPITECH"
}
NewsAPI
Get a new article about a subject
Detect change on old youtube video from a user on youtube:
"Action": {
"actionType": "NewNewsAPI",
"subject": "$RVsubject"
}
Details about RV values:
RVsubject:
Definition: subject to look for articles
Value: string
Example:
"Action": {
"actionType": "NewNewsAPI",
"subject": "Waifus"
}
MeteoNews
Get the current meteo in a city
Detect change on meteo for a city:
"Action": {
"actionType": "NewMeteoNews",
"target": "$RVtarget"
}
Details about RV values:
RVtarget:
Definition: city to look for weather changes
Value: string
Example:
"Action": {
"actionType": "NewMeteoNews",
"target": "Paris"
}
Spotify
Get the track the most popular on Spotify
Detect if the most popular track on Spotify changes:
"Action": {
"actionType": "SpotifyNewFirstRank"
}
Example:
"Action": {
"actionType": "SpotifyNewFirstRank"
}
Get the latest release on Spotify
Detect if there is a new release on Spotify (World Wide):
"Action": {
"actionType": "SpotifyNewRelease"
}
Example:
"Action": {
"actionType": "SpotifyNewRelease"
}
Get the latest release on Spotify for a given artist
Detect if there is a new release on Spotify for a given artist:
"Action": {
"actionType": "SpotifyNewReleaseArtist",
"artist_id": "$RVartist_id"
}
Details about RV values:
RVartist_id:
Definition: artist id to look for new release
Value: string
Example:
"Action": {
"actionType": "SpotifyNewReleaseArtist",
"artist_id": "4Mc3zbnQx4wRb0tYg7A8sG"
}
How to get the id of an artist on Sotify
Github
Get the new issue for a given repo
Detect if there is a new issue on a given repo:
"Action": {
"actionType": "GithubNewIssue",
"repo_target": "$RVrepo_target"
}
Details about RV values:
RVrepo_target:
Definition: user/repo name of the given repo to look for new issues
Value: string
Example:
"Action": {
"actionType": "GithubNewIssue",
"repo_target": "AmayaHena/UWU"
}
Get the new commit for a given repo
Detect if there is a new commit on a given repo:
"Action": {
"actionType": "GithubNewCommit",
"repo_target": "$RVrepo_target"
}
Details about RV values:
RVrepo_target:
Definition: user/repo name of the given repo to look for new issues
Value: string
Example:
"Action": {
"actionType": "GithubNewCommit",
"repo_target": "AmayaHena/UWU"
}