persona-sdk-patterns

Featured

Production Persona API client wrapper with retry, pagination, typed responses. Use when working with Persona identity verification. Trigger with phrases like "persona sdk-patterns", "persona sdk-patterns".

AI & Automation 2,359 stars 334 forks Updated today 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

# persona sdk patterns | sed 's/\b\(.\)/\u\1/g' ## Overview Singleton API client, typed verification results, pagination through inquiries, error classification. ## Prerequisites - Completed `persona-install-auth` setup - Valid Persona API key (sandbox or production) ## Instructions ### Step 1: Typed API Client Wrapper ```typescript import axios, { AxiosInstance, AxiosError } from 'axios'; interface PersonaConfig { apiKey: string; version?: string; baseURL?: string; } class PersonaClient { private http: AxiosInstance; constructor(config: PersonaConfig) { this.http = axios.create({ baseURL: config.baseURL || 'https://withpersona.com/api/v1', headers: { 'Authorization': `Bearer ${config.apiKey}`, 'Persona-Version': config.version || '2023-01-05', 'Content-Type': 'application/json', }, }); } async createInquiry(templateId: string, referenceId: string, fields?: Record<string, any>) { const { data } = await this.http.post('/inquiries', { data: { attributes: { 'inquiry-template-id': templateId, 'reference-id': referenceId, fields } }, }); return data.data; } async getInquiry(inquiryId: string) { const { data } = await this.http.get(`/inquiries/${inquiryId}`); return data.data; } async listInquiries(params: { referenceId?: string; status?: string; pageSize?: number } = {}) { const { data } = await this.http.get('/inquiries', { params: { 'filter[reference-id]'...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category