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

profile_bannerのURLを取得できるサイズの追加 #265

Merged
merged 2 commits into from
Aug 11, 2018

Conversation

moko256
Copy link
Contributor

@moko256 moko256 commented Jul 18, 2017

取得できるprofile_bannerのURLに
300x100
600x200
1500x500
のサイズの追加

User#getProfileBanner600x200URL(),
User#getProfileBanner1500x500URL()
Copy link
Contributor

@takke takke left a comment

Choose a reason for hiding this comment

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

missing "/"

"1500x500" のようになっていますが URL の組み立てに失敗しています。

例)https://pbs.twimg.com/profile_banners/8379212/13907201011500x500

"/1500x500" のように変更してください。

@@ -428,6 +428,21 @@ public String getProfileBannerMobileRetinaURL() {
}

@Override
public String getProfileBanner300x100URL() {
return profileBannerImageUrl != null ? profileBannerImageUrl + "300x100" : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

missing "/"


@Override
public String getProfileBanner600x200URL() {
return profileBannerImageUrl != null ? profileBannerImageUrl + "600x200" : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

missing "/"


@Override
public String getProfileBanner1500x500URL() {
return profileBannerImageUrl != null ? profileBannerImageUrl + "1500x500" : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

missing "/"

@yusuke yusuke merged commit c96415b into Twitter4J:master Aug 11, 2018
@moko256
Copy link
Contributor Author

moko256 commented Aug 11, 2018

Thanks!

@moko256 moko256 deleted the add_size_of_profile_banner branch November 6, 2018 08:51
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