misarpost library
MisarPost Dart SDK — https://docs.misar.io/post
Classes
- AnalyticsResource
-
The
analyticsresource group. - ComposerResource
-
The
composerresource group. - ConnectionsResource
-
The
connectionsresource group. - ContentrippleResource
-
The
contentrippleresource group. - DraftsResource
-
The
draftsresource group. - GenerateResource
-
The
generateresource group. - GrowthResource
-
The
growthresource group. - MediaResource
-
The
mediaresource group. - MisarPostClient
-
MisarPost API client. Every resource (
client.posts,client.generate, …) is generated from the API's own route tree (sdks/manifest.json). - NotificationsResource
-
The
notificationsresource group. - PersonaforgeResource
-
The
personaforgeresource group. - PostsResource
-
The
postsresource group. - PostTagsResource
-
The
postTagsresource group. - PostTemplatesResource
-
The
postTemplatesresource group. - Resources
- Every resource group, generated from sdks/manifest.json.
- Transport
-
HTTP transport the generated resource layer is written against. One
credential, one path in: the account API key (
mpk_…) sent asAuthorization: Bearer. Retries throttles, 5xx and network failures with exponential backoff from 200 ms honouringRetry-After— never a plan refusal. - TrendpulseResource
-
The
trendpulseresource group. - VideoResource
-
The
videoresource group. - WebhooksResource
-
The
webhooksresource group. - WorkspacesResource
-
The
workspacesresource group.
Constants
- webhookSignatureHeader → const String
-
Outbound webhook deliveries carry
X-MisarPost-Signature: sha256=<hex>— the HMAC-SHA256 of the RAW request body keyed with the endpoint'smpwh_secret.
Functions
-
computeWebhookSignature(
String secret, List< int> rawBody) → String -
paginate(
Future< Map< fetchPage(int page), {int maxPages = 0}) → Stream<String, dynamic> >Map< String, dynamic> > -
Page through MisarPost's
?page=list endpoints: callsfetchPagewith page 1, 2, … until the page the server reports astotalPages— or, when an endpoint reports no totals, until a page comes back empty. -
verifyWebhookSignature(
String secret, List< int> rawBody, String? signatureHeader) → bool -
Constant-time check of
signatureHeaderagainst the raw body.
Exceptions / Errors
- MisarPostException
- Any non-2xx answer from the MisarPost API, or a transport failure (status 0).
- MisarPostPlanLimitException
-
The plan behind the API key blocks this call: HTTP 402 with
code: "plan_limit_exceeded"and an upgrade offer. Detected by code before the status and never retried. All copy comes from the server.