-
Notifications
You must be signed in to change notification settings - Fork 31
Adding create_audience_for_uploading_by_file #162
Conversation
…e_audience_by_file
for creating audience for uploading file
], | ||
[ | ||
@$body, | ||
'file' => $fh, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
- including file_path into error message. - removed "use strict" and "use warnings" with introducing of "use Test2::V0"
once close this PR. |
this PR is for one of #149.