Repository navigation
feat: add create_import and get_import to APIClient - #146
Merged
Merged
Conversation
create_import starts a CSV import through POST /v1/imports and get_import reads one through GET /v1/imports/{id}. send_request now sends no body when data is None, and the test server answers GET.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
sydneycollins-cio
marked this pull request as ready for review
November 27, 2026 17:44
Shahroz16
approved these changes
Nov 30, 2026
Shahroz16
left a comment
There was a problem hiding this comment.
Looks good. The two calls follow the existing App API pattern, and the test covers the GET going out without a body. One README point inline.
error_download_url is an App API route that needs the app key and answers with a link to the CSV. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Shahroz16
approved these changes
Dec 1, 2026
Shahroz16
left a comment
There was a problem hiding this comment.
Looks good, thanks Sydney. The README now explains how to fetch the skipped rows file, and it matches what the API returns.
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.
What changed
APIClient.create_import(import_data)starts a CSV import withPOST /v1/imports. It checks thatdata_file_urlandtypeare present and lets the API validate the rest.APIClient.get_import(import_id)reads an import withGET /v1/imports/{id}.send_requestnow sends no body whendataisNone, so GET calls work.How it was tested
make lintandmake testpass (92 tests).🤖 Generated with Claude Code