Integrate the Ayrshare API into your Notion app to manage your users’ social media accounts
Post
as Title column type (you don’t have a choice here with the column type)Platforms
as Multi Select column type with values: facebook
, instagram
, twitter
,
linkedin
, tiktok
, and/or telegram
.Images
as Files & Media column type.Profile Keys
as Text column type.Status
as Text column type.Schedule Date
as Date column type with Date Format Month/Day/Year, Time Format 24 Hours, and
include timePost
: Enter “Happy New Year!”Platforms
: select one or more networks you have linked. Please be sure the name is lowercase.Images
: Attach an image or a video.Profile Keys
: If you are on the Business Plan and want to post to a client’s profile, enter
their Profile Key. Otherwise, leave blank.Status
: Enter “pending”. The script only grabs records that are set to “pending”. Please be
sure “pending” is lowercase.Schedule Date
: Leave blank since we’ll just test immediate posting right now. Later you can
select a future date to schedule the post.API_KEY
: this is API Key
you get from Ayrshare. This is the primary API Key for your
Ayrshare primary profile.NOTION_DATABASE_ID
: Open the database you created earlier in this page and get the database ID
from the URL.NOTION_KEY
: internal integration token from earlier.npm install
..env
file with your Ayrshare API_KEY
, Notion NOTION_KEY
and
NOTION_DATABASE_ID
.node index.js
pending
status columns will be changed to success
and the posts will have been made to the appropriate social networks.