hootsuite-sdk-patterns

Featured

Apply production-ready Hootsuite SDK patterns for TypeScript and Python. Use when implementing Hootsuite integrations, refactoring SDK usage, or establishing team coding standards for Hootsuite. Trigger with phrases like "hootsuite SDK patterns", "hootsuite best practices", "hootsuite code patterns", "idiomatic hootsuite".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Hootsuite SDK Patterns ## Overview Production patterns for Hootsuite REST API: typed client, token management, scheduling helpers, and Python integration. ## Instructions ### Step 1: Typed API Client ```typescript // src/hootsuite/types.ts interface SocialProfile { id: string; type: 'TWITTER' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'PINTEREST' | 'YOUTUBE' | 'TIKTOK'; socialNetworkUsername: string; socialNetworkId: string; } interface ScheduledMessage { id: string; text: string; state: 'SCHEDULED' | 'SENT' | 'FAILED' | 'REJECTED'; socialProfileIds: string[]; scheduledSendTime: string; sentAt?: string; mediaUrls?: Array<{ id: string }>; } interface HootsuiteResponse<T> { data: T; } ``` ### Step 2: Scheduling Helper with Timezone ```typescript function scheduleForTimezone( hour: number, minute: number, timezone: string, daysFromNow = 0 ): Date { const date = new Date(); date.setDate(date.getDate() + daysFromNow); const dateStr = date.toISOString().split('T')[0]; const timeStr = `${hour.toString().padStart(2, '0')}:${minute.toString().padStart(2, '0')}:00`; return new Date(`${dateStr}T${timeStr}`); } // Schedule posts at optimal times per platform const OPTIMAL_TIMES = { TWITTER: { hour: 9, minute: 0 }, INSTAGRAM: { hour: 11, minute: 0 }, LINKEDIN: { hour: 7, minute: 30 }, FACEBOOK: { hour: 13, minute: 0 }, }; ``` ### Step 3: Python Client ```python # hootsuite/client.py import os, requests, time from dotenv import...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category