[feature]: Add Sunshine Conversations API SDK entry point#65
Open
[feature]: Add Sunshine Conversations API SDK entry point#65
Conversation
Implement the Conversations entry point for the Sunshine Conversations (formerly Smooch) API with 16 resources: Apps, App Keys, Conversations, Messages, Participants, Activities, Switchboard Actions, Integrations, Integration API Keys, Webhooks, Switchboards, Switchboard Integrations, Users, Clients, Devices, and Attachments. Key design decisions: - Uses Basic auth (key_id:secret) with /sc base path - Custom pagination helper (sunco_yield_items) with get_raw() to avoid bracket encoding in page[size] query params - Users list requires filter[identities.email] (list_by_email) - Conversations list requires filter[userId] (list_by_user) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
monteiroliveira
requested changes
Mar 23, 2026
Collaborator
monteiroliveira
left a comment
There was a problem hiding this comment.
Acabei ficando off esse fim de semana.. Demorei um pouco para ver esse PR.
Os nomes dos campos da dataclass não estão em snake case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Prefácio
Implementação do entry point
Conversationspara a API de Sunshine Conversations (formerly Smooch) do Zendesk. API completamente diferente do padrão Zendesk: usa autenticação Basic com key_id/secret, base path/sc, e paginação compage[size]usando literal brackets.CHANGELOG
Adicionado
Conversationsexportado delibzapicom autenticação viakey_id/key_secret+app_idlist_by_user(user_id), get, create, update, deletelist_by_email(email), get, create, update, delete, delete_personal_info, syncInfraestrutura
basic_key_headers(key_id, key_secret)emauth.pypara autenticação Basicget_raw(url)emHttpClientpara enviar URLs com brackets literais sem percent-encodingsunco_yield_items()paginador customizado usandoget_rawparapage[size]HttpClient.get()agora aceitaparamsopcional (backward-compatible)Notas técnicas
filter[identities.email]— exposto comolist_by_email(email)filter[userId]— exposto comolist_by_user(user_id)BACKLOG
ISSUES
Nenhuma issue relacionada.
REQUISITOS
ZENDESK_URL,SUNCO_KEY_ID,SUNCO_KEY_SECRET,SUNCO_APP_ID🤖 Generated with Claude Code