Skip to content

feat: add create_import and get_import to APIClient - #160

Open
sydneycollins-cio wants to merge 1 commit into
mainfrom
claude/mbl-2916-import-calls-3d42ee
Open

sydneycollins-cio wants to merge 1 commit into
mainfrom
claude/mbl-2916-import-calls-3d42ee

Conversation

@sydneycollins-cio

Copy link
Copy Markdown
Contributor

Adds two App API calls to Customerio::APIClient so a CSV import can be started and its result read.

  • create_import(req) posts a new CreateImportRequest to /v1/imports.
  • get_import(import_id) reads one import from /v1/imports/{id}.
  • The README has a new "Import data from a CSV" section with a device import example.

Tested with bundle exec rake: 181 examples, 0 failures, RuboCop clean.

🤖 Generated with Claude Code

Adds CreateImportRequest and two App API calls so a CSV import can be
started and its result read. The request checks only that data_file_url
and type are present; the API validates the values.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@sydneycollins-cio
sydneycollins-cio marked this pull request as ready for review November 27, 2026 17:44
@sydneycollins-cio
sydneycollins-cio requested a review from a team as a code owner November 27, 2026 17:44

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant