EmployeeProfiles Class
Get, set and crop, and delete employee banner photos and photos.
These methods are for EmployeeProfiles. All methods are static.
-
Delete an employee’s banner photo.
-
Delete an employee’s photo.
-
Get an employee’s banner photo.
-
Get an employee’s photo.
-
setBannerPhoto(employeeId, fileId, versionNumber)
Set an uploaded file as an employee’s banner photo.
-
setBannerPhoto(employeeId, fileUpload)
Set a file that hasn’t been uploaded as an employee’s banner photo.
-
setBannerPhotoWithAttributes(employeeId, bannerPhoto)
Set and crop an uploaded file as an employee’s banner photo.
-
setBannerPhotoWithAttributes(employeeId, bannerPhoto, fileUpload)
Set and crop a file that hasn’t been uploaded as an employee’s banner photo.
-
setPhoto(employeeId, fileId, versionNumber)
Set an uploaded file as an employee’s photo.
-
setPhoto(employeeId, fileUpload)
Set a file that hasn’t been uploaded as an employee’s photo.
-
setPhotoWithAttributes(employeeId, photo)
Set and crop an uploaded file as an employee’s photo.
-
setPhotoWithAttributes(employeeId, photo, fileUpload)
Set and crop a file that hasn’t been uploaded as an employee’s photo.
Delete an employee’s banner photo.
51.0
No
public static Void deleteBannerPhoto(String employeeId)
- employeeId
Type: String
ID of the employee.
Type: Void
Delete an employee’s photo.
51.0
No
public static Void deletePhoto(String employeeId)
- employeeId
Type: String
ID of the employee.
Type: Void
Get an employee’s banner photo.
51.0
No
public static ConnectApi.BannerPhoto getBannerPhoto(String employeeId)
- employeeId
Type: String
ID of the employee.
Type: ConnectApi.BannerPhoto
Get an employee’s photo.
51.0
51.0
No
public static ConnectApi.Photo getPhoto(String employeeId)
- employeeId
Type: String
ID of the employee.
Type: ConnectApi.Photo
Set an uploaded file as an employee’s banner photo.
51.0
No
public static ConnectApi.BannerPhoto setBannerPhoto(String employeeId, String fileId, Integer versionNumber)
- employeeId
Type: String
ID of the employee.
- fileId
Type: String
ID of the uploaded file to use as the employee banner photo. The file must be an image and be smaller than 2 GB.
- versionNumber
Type: Integer
Version number of the file. Specify an existing version number or, to get the latest version, specify
null.
Type: ConnectApi.BannerPhoto
Set a file that hasn’t been uploaded as an employee’s banner photo.
51.0
No
public static ConnectApi.BannerPhoto setBannerPhoto(String employeeId, ConnectApi.BinaryInput fileUpload)
- employeeId
Type: String
ID of the employee.
- fileUpload
Type:
ConnectApi.BinaryInputFile to use as the photo. The content type must be usable as an image.
Type: ConnectApi.BannerPhoto
Photos are processed asynchronously and might not be visible right away.
Set and crop an uploaded file as an employee’s banner photo.
51.0
No
public static ConnectApi.BannerPhoto setBannerPhotoWithAttributes(String employeeId, ConnectApi.BannerPhotoInput bannerPhoto)
- employeeId
Type: String
ID of the employee.
- bannerPhoto
Type:
ConnectApi.BannerPhotoInputA
ConnectApi.BannerPhotoInputobject that specifies the ID and version of the file, and how to crop the file.
Type: ConnectApi.BannerPhoto
Photos are processed asynchronously and might not be visible right away.
Set and crop a file that hasn’t been uploaded as an employee’s banner photo.
51.0
No
public static ConnectApi.BannerPhoto setBannerPhotoWithAttributes(String employeeId, ConnectApi.BannerPhotoInput bannerPhoto, ConnectApi.BinaryInput fileUpload)
- employeeId
Type: String
ID of the employee.
- bannerPhoto
Type:
ConnectApi.BannerPhotoInputA
ConnectApi.BannerPhotoInputobject specifying the cropping parameters.- fileUpload
Type:
ConnectApi.BinaryInputFile to use as the photo. The content type must be usable as an image.
Type: ConnectApi.BannerPhoto
Photos are processed asynchronously and might not be visible right away.
Set an uploaded file as an employee’s photo.
51.0
No
public static ConnectApi.Photo setPhoto(String employeeId, String fileId, Integer versionNumber)
- employeeId
Type: String
ID of the employee.
- fileId
Type: String
ID of the uploaded file to use as the employee photo. The file must be an image and be smaller than 2 GB.
- versionNumber
Type: Integer
Version number of the file. Specify an existing version number or, to get the latest version, specify
null.
Type: ConnectApi.Photo
Photos are processed asynchronously and might not be visible right away.
Set a file that hasn’t been uploaded as an employee’s photo.
51.0
No
public static ConnectApi.Photo setPhoto(String employeeId, ConnectApi.BinaryInput fileUpload)
- employeeId
Type: String
ID of the employee.
- fileUpload
Type:
ConnectApi.BinaryInputFile to use as the photo. The content type must be usable as an image.
Type: ConnectApi.Photo
Photos are processed asynchronously and might not be visible right away.
Set and crop an uploaded file as an employee’s photo.
51.0
No
public static ConnectApi.Photo setPhotoWithAttributes(String employeeId, ConnectApi.PhotoInput photo)
- employeeId
Type: String
ID of the employee.
- photo
Type:
ConnectApi.PhotoInputA
ConnectApi.PhotoInputobject specifying the file ID, version number, and cropping parameters.
Type: ConnectApi.Photo
Photos are processed asynchronously and might not be visible right away.
Set and crop a file that hasn’t been uploaded as an employee’s photo.
51.0
No
public static ConnectApi.Photo setPhotoWithAttributes(String employeeId, ConnectApi.PhotoInput photo, ConnectApi.BinaryInput fileUpload)
- employeeId
Type: String
ID of the employee.
- photo
Type:
ConnectApi.PhotoInputA
ConnectApi.PhotoInputobject specifying the cropping parameters.- fileUpload
Type:
ConnectApi.BinaryInputFile to use as the photo. The content type must be usable as an image.
Type: ConnectApi.Photo
Photos are processed asynchronously and might not be visible right away.