UserProfiles クラス
名前空間
UserProfiles のメソッド
UserProfiles のメソッドは次のとおりです。すべてのメソッドが静的です。
getBannerPhoto(communityId, userId)
API バージョン
36.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.BannerPhoto getBannerPhoto(String communityId, String userId)
戻り値
getPhoto(communityId, userId)
API バージョン
35.0
ゲストユーザが使用可能
35.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.Photo getPhoto(String communityId, String userId)
戻り値
getUserProfile(communityId, userId)
API バージョン
29.0
Chatter が必要かどうか
はい
署名
public static ConnectApi.UserProfile getUserProfile(String communityId, String userId)
戻り値
setBannerPhoto(communityId, userId, fileId, versionNumber)
API バージョン
36.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.BannerPhoto setBannerPhoto(String communityId, String userId, String fileId, Integer versionNumber)
パラメータ
戻り値
使用方法
写真は非同期に処理され、すぐには表示されない場合があります。
setBannerPhoto(communityId, userId, fileUpload)
API バージョン
36.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.BannerPhoto setBannerPhoto(String communityId, String userId, ConnectApi.BinaryInput fileUpload)
パラメータ
- communityId
- 型: String
- コミュニティの ID、internal、または null のいずれかを使用します。
- userId
- 型: String
- ユーザの ID。
- fileUpload
- 型: ConnectApi.BinaryInput
- 写真として使用するファイル。画像として使用できるコンテンツタイプである必要があります。
戻り値
使用方法
写真は非同期に処理され、すぐには表示されない場合があります。
setBannerPhotoWithAttributes(communityId, userId, bannerPhoto)
API バージョン
36.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.BannerPhoto setBannerPhotoWithAttributes(String communityId, String userId, ConnectApi.BannerPhotoInput bannerPhoto)
パラメータ
- communityId
- 型: String
- コミュニティの ID、internal、または null のいずれかを使用します。
- userId
- 型: String
- ユーザの ID。
- bannerPhoto
- 型: ConnectApi.BannerPhotoInput
- ファイルの ID とバージョン、およびファイルのトリミング方法を指定する ConnectApi.BannerPhotoInput オブジェクト。
戻り値
使用方法
写真は非同期に処理され、すぐには表示されない場合があります。
setBannerPhotoWithAttributes(communityId, userId, bannerPhoto, fileUpload)
API バージョン
36.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.BannerPhoto setBannerPhotoWithAttributes(String communityId, String userId, ConnectApi.BannerPhotoInput bannerPhoto, ConnectApi.BinaryInput fileUpload)
パラメータ
- communityId
- 型: String
- コミュニティの ID、internal、または null のいずれかを使用します。
- userId
- 型: String
- ユーザの ID。
- bannerPhoto
- 型: ConnectApi.BannerPhotoInput
- トリミングパラメータを指定する ConnectApi.BannerPhotoInput オブジェクト。
- fileUpload
- 型: ConnectApi.BinaryInput
- 写真として使用するファイル。画像として使用できるコンテンツタイプである必要があります。
戻り値
使用方法
写真は非同期に処理され、すぐには表示されない場合があります。
setPhoto(communityId, userId, fileId, versionNumber)
API バージョン
35.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.Photo setPhoto(String communityId, String userId, String fileId, Integer versionNumber)
パラメータ
戻り値
使用方法
写真は非同期に処理され、すぐには表示されない場合があります。
setPhoto(communityId, userId, fileUpload)
API バージョン
35.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.Photo setPhoto(String communityId, String userId, ConnectApi.BinaryInput fileUpload)
パラメータ
- communityId
- 型: String
- コミュニティの ID、internal、または null のいずれかを使用します。
- userId
- 型: String
- コンテキストユーザの ID またはキーワード me。
- fileUpload
- 型: ConnectApi.BinaryInput
- 写真として使用するファイル。画像として使用できるコンテンツタイプである必要があります。
戻り値
使用方法
写真は非同期に処理され、すぐには表示されない場合があります。
setPhotoWithAttributes(communityId, userId, photo)
API バージョン
35.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.Photo setPhotoWithAttributes(String communityId, String userId, ConnectApi.PhotoInput photo)
パラメータ
- communityId
- 型: String
- コミュニティの ID、internal、または null のいずれかを使用します。
- userId
- 型: String
- コンテキストユーザの ID またはキーワード me。
- photo
- 型: ConnectApi.PhotoInput
- ファイル ID、バージョン番号、およびトリミングパラメータを指定する ConnectApi.PhotoInput オブジェクト。
戻り値
使用方法
写真は非同期に処理され、すぐには表示されない場合があります。
setPhotoWithAttributes(communityId, userId, photo, fileUpload)
API バージョン
35.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.Photo setPhotoWithAttributes(String communityId, String userId, ConnectApi.PhotoInput photo, ConnectApi.BinaryInput fileUpload)
パラメータ
- communityId
- 型: String
- コミュニティの ID、internal、または null のいずれかを使用します。
- userId
- 型: String
- コンテキストユーザの ID またはキーワード me。
- photo
- 型: ConnectApi.PhotoInput
- トリミングパラメータを指定する ConnectApi.PhotoInput オブジェクト。
- fileUpload
- 型: ConnectApi.BinaryInput
- 写真として使用するファイル。画像として使用できるコンテンツタイプである必要があります。
戻り値
使用方法
写真は非同期に処理され、すぐには表示されない場合があります。