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

Add WithImageOptions for buttons/carousel templates #66

Merged
merged 2 commits into from
Jan 10, 2018

Conversation

clsung
Copy link
Contributor

@clsung clsung commented Dec 31, 2017

NOTE: for backward compatibility (and not breaking any client library who use this SDK), I choose to use WithImageOptions() and return the object itself.

2017/11/30 New options for template message images:

"We have released imageAspectRatio, imageSize, and imageBackgroundColor
fields for Buttons and Carousel template messages. Using these fields,
you can configure the aspect ratio, size, and background color for
images used in template messages."

Ref:

2017/11/30 New options for template message images:

"We have released imageAspectRatio, imageSize, and imageBackgroundColor
fields for Buttons and Carousel template messages. Using these fields,
you can configure the aspect ratio, size, and background color for
images used in template messages."

Ref:
 - https://developers.line.me/en/docs/messaging-api/reference/#buttons
 - https://developers.line.me/en/docs/messaging-api/reference/#carousel
@kazuki-ma
Copy link

Issue: #67

@sugyan
Copy link
Contributor

sugyan commented Jan 9, 2018

@clsung
Thank you very good implementation!
I thought that it would be better to specify imageAspectRatio and imageSize with constant values, but how about that?

@clsung
Copy link
Contributor Author

clsung commented Jan 9, 2018

@sugyan please help to review again, thank you.

@sugyan
Copy link
Contributor

sugyan commented Jan 10, 2018

LGTM. Thank you very much!

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.

3 participants