Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Lists Hootsuite social profiles and schedules a post through the Hootsuite REST API with TypeScript examples.
64% 82%+18 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 14 of 22 without it.
When Hootsuite successfully accepts a scheduled post via POST /v1/messages, what property structure in the JSON response contains the ID, state, and publication timestamp of the newly created item?
The message publication timestamp is stored in scheduledSendTime.
3 of 3 safety checks passed
List your social media profiles and schedule a post using the Hootsuite REST API. The API base URL is https://platform.hootsuite.com/v1/.
hootsuite-install-auth setup// hello-hootsuite.ts
import 'dotenv/config';
const TOKEN = process.env.HOOTSUITE_ACCESS_TOKEN!;
const BASE = 'https://platform.hootsuite.com/v1';
async function listProfiles() {
const response = await fetch(`${BASE}/socialProfiles`, {
headers: { 'Authorization': `Bearer ${TOKEN}` },
});
const { data } = await response.json();
for (const profile of data) {
console.log(`${profile.type}: @${profile.socialNetworkUsername} (ID: ${profile.id})`);
}
return data;
}
listProfiles().catch(console.error);
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.