Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Adding create_audience_for_uploading_by_file #162

Closed
wants to merge 14 commits into from

Conversation

bedoshi
Copy link
Contributor

@bedoshi bedoshi commented Nov 23, 2020

this PR is for one of #149.

@bedoshi bedoshi marked this pull request as ready for review January 29, 2021 07:27
],
[
@$body,
'file' => $fh,
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if Furl would corretly anotate this as text/plain type with only a filehandle -- this needs to be doublechecked.

Copy link
Contributor

@gugod gugod Feb 4, 2021

Choose a reason for hiding this comment

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

https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group-by-file

curl -v -X POST https://api-data.line.me/v2/bot/audienceGroup/upload/byFile \
-H 'Authorization: Bearer {channel access token}' \
-F 'description=audienceGroupName' \
-F '[email protected];type=text/plain'

I'm referring to the type=text/plain part from that example.

Copy link
Contributor Author

@bedoshi bedoshi Mar 25, 2021

Choose a reason for hiding this comment

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

@gugod
Sorry for my replying late...
I think using multiple -F option with uploading file on curl and it means multipart/form-data.
So I consider we can ignore text/plain for using multipart/form-data.
what do you think about this?

@bedoshi
Copy link
Contributor Author

bedoshi commented Apr 3, 2023

once close this PR.

@bedoshi bedoshi closed this Apr 3, 2023
@bedoshi bedoshi deleted the create_audience_by_file branch April 3, 2023 06:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants