Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use file-upload strategy of zoho to upload larger content #10

Merged
merged 2 commits into from
Nov 24, 2023
Merged

Conversation

TobiEiss
Copy link
Member

Change file-upload strategy.
The current implemented strategy is using a header-param to transfer the data. The better way is to upload the CSV-Data as multipart/form-data.
Zoho Docu: https://www.zoho.com/analytics/api/#import-data

Change is made without breaking change for use of this lib.

zoho.go Outdated
if additionalHeaders == nil {
additionalHeaders = map[string]string{}
}
additionalHeaders["User-Agent"] = "ZohoAnalytics GoLibrary"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

du überschreibst damit auch, wenn jemand von außen einen User-Agent reingeben will.
Kannst da noch einen Check davor packen, dann ist es etwas robuster, außer du möchtest dieses Verhalten auf jeden Fall haben.

Copy link
Member

@hanspolo hanspolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Falls du dich entscheidest, dass das Verhalten in dem Kommentar so gewünscht ist, dann soll dem von mir aus nichts mehr im Wege stehen.

@TobiEiss TobiEiss merged commit 7417af1 into main Nov 24, 2023
4 checks passed
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.

2 participants