Skip to content

MT-22691: Contact imports & exports - #23

Merged
Lorenc326 merged 2 commits into
mainfrom
MT-22691-imports-exports
Jul 10, 2026
Merged

MT-22691: Contact imports & exports#23
Lorenc326 merged 2 commits into
mainfrom
MT-22691-imports-exports

Conversation

@Lorenc326

Copy link
Copy Markdown
Contributor

Motivation

Adds the asynchronous bulk-job resources of the Email Marketing API to the Go SDK: contact imports and exports.

Changes

  • ContactImports (client.ContactImports): Create (start a bulk import) + Get (poll status). The created/updated/over_limit counts are populated once the job finishes.
  • ContactExports (client.ContactExports): Create (start an export, optionally filtered by list or subscription status) + Get (poll status; the download URL is set once finished). Filter names/operator and job statuses are exposed as constants; the filter Value is any to carry either a []int64 (list IDs) or a status string, per the spec's oneOf.
  • httptest tests + examples/contact-imports + examples/contact-exports + README entries.

Field shapes and paths verified against the OpenAPI spec (contacts).

How to test

  • go test -race ./...
  • go vet ./...
  • golangci-lint run ./...

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: af676943-6436-4a98-8101-a4be93324272

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Lorenc326
Lorenc326 force-pushed the MT-22691-imports-exports branch from fb041b3 to e2aa1b3 Compare July 9, 2026 11:10
@Lorenc326
Lorenc326 force-pushed the MT-22691-lists-fields branch from bee9cd2 to 6146f64 Compare July 10, 2026 10:49
The exclusions path pattern examples$ only matched a path ending in
examples, not files under examples/. Fix it so example programs (which
favor brevity over lint-clean idioms) are actually skipped.
@Lorenc326
Lorenc326 force-pushed the MT-22691-imports-exports branch from 289dba2 to 5b4399c Compare July 10, 2026 11:00
Base automatically changed from MT-22691-lists-fields to main July 10, 2026 12:37
@Lorenc326
Lorenc326 merged commit 56491e6 into main Jul 10, 2026
4 checks passed
@Lorenc326
Lorenc326 deleted the MT-22691-imports-exports branch July 10, 2026 12:37
@github-actions github-actions Bot mentioned this pull request Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants