description:'Title of the post, up to 300 characters long',
displayOptions:{
show:{
resource:[
'post',
],
operation:[
'create',
],
},
},
},
{
displayName:'URL',
name:'url',
type:'string',
required: true,
default:'',
description:'URL of the post',
displayOptions:{
show:{
resource:[
'post',
],
operation:[
'create',
],
kind:[
'link',
'image',
'video',
'videogif',
],
},
},
},
{
displayName:'Text',
name:'text',
type:'string',
required: true,
default:'',
description:'Text of the post (Markdown supported)',
displayOptions:{
show:{
resource:[
'post',
],
operation:[
'create',
],
kind:[
'self',
],
},
},
},
{
displayName:'Resubmit',
name:'resubmit',
type:'boolean',
default:false,
description:'If toggled on, the URL will be posted even if<br>it was already posted to the subreddit before.<br>Otherwise, the re-posting will trigger an error.',
displayOptions:{
show:{
resource:[
'post',
],
operation:[
'create',
],
kind:[
'link',
'image',
'video',
'videogif',
],
},
},
},
// ----------------------------------
// post: getAll
// ----------------------------------
{
displayName:'Best',
name:'best',
type:'boolean',
default:false,
description:'Best posts in all of Reddit',
displayOptions:{
show:{
resource:[
'post',
],
operation:[
'getAll',
],
},
},
},
{
displayName:'Subreddit',
name:'subreddit',
type:'string',
required: true,
default:'',
description:'The name of subreddit to retrieve the posts from',