- Initial release
- Update incorrect spelling from UCG to UGC.
- Update
DebugHeaderInfo.toString()
so it is more verbose. - Update
Organization.overviewPhotoV2
so it matches the LinkedIn organization documentation. - Upload images bytes to LinkedIn for rich media uploads in addition to files.
- Update
TargetAudience.equals()
,TargetAudience.hashcode()
,Locale.equals()
andLocale.hashcode()
methods using Lombok implementations. Locale
andTargetAudience
have relevant setter methods.- Update method name
URN.getURNEntityType()
toURN.resolveURNEntityType()
- Add
Address.toString()
andLocale.toString()
method. - Add constructor to URN to allow entity type to construct a URN object.
OrganizationalTarget
class is public.TotalShareStatistics
class is public with relevant getters and setters.ConnectionBaseV2.addTimeIntervalToParams()
checks for null time interval.- Add
ImageV2Elements
to extend V2 images to support cropped images (see: https://developer.linkedin.com/docs/ref/v2/media-migration#migration) - Add
URNEntityType.UGCPost
and ensure all enums have the string representation of the urn. Instead of usingURNEntityType.name()
URNEntityType.getEntityValue()
should be used to support UGCPosts.
DefaultLinkedInClient.makeRequestAndProcessResponse
handles 401 errors asLinkedInOAuthException
rather thanLinkedInNetworkException
DefaultLinkedInClient.throwLinkedInResponseStatusExceptionIfNecessary
should handle errors if they do not have anerror
attribute in the JSON.- Add
Content-Lenght
for post requests inDefaultWebRequester
(see: Error handling) - Ensure HTTP status 204 (No Content) does not throw a
LinkedInException
as it's returned byDELETE https://api.linkedin.com/v2/ugcPosts/{encoded ugcPostUrn|shareUrn}
Delete UGC Posts. - Deprecate
RichMediaConnection
as LinkedIn has launched Media Assets API (previously Vector Platform) to host media types such as images and videos. LinkedIn is planning to deprecate the existing Rich Media Platform byJanurary 30, 2020
. See migration guide. - Add
NATIVE_DOCUMENT
,URN_REFERENCE
,LIVE_VIDEO
to UGC ShareMediaCategory enum. - Checkstyle plugin version bumped. Some code reformatted in order to satisfy new checkstyle rules.
- Put in a place an interim fix for Linkedin V2 pagination. It seems like LinkedIn's pagination is incorrectly returning the number of elements where the number of elements is less than the request amount even though there are in fact more results. This fix should continue to the next page until there are no more results.
- Accidentally skipped this version - no changes
- After receiving a response from LinkedIn on the issues surrounding V2 pagination where the
count
value in the response object does not match the number of elements returned or in fact in some cases where not all elements are returned, it's best to not provide pagination parameters in the request to the LinkedIn API until they have fixed it in the API. Pagination parameters will not longer be provided by default inDefaultLinkedInClient.fetchConnection()
. Instead, if nocount
parameter is provided in the initial request,V2PaginationImpl
will continue to iterate through all pages until the number of elements in the response no longer equals the expected count. This will avoid infinitely looping over pages until an empty page is discovered.
- UGCShareConnection.retrieveUGCPostsByAuthors() now includes sortBy param to get posts sorted by creation date.
- OrganizationConnection.retrieveOrganizationBrand will return an organization brand based on the organization URN.
- OrganizationConnection.retrieveOrganizationBrandByParentOrganization will return all the organization brands linked to an orginzation
- Updated all dependencies.
- RemovedLinkedinLogger as EventLogger had been removed from slf4j-ext.
- Change
RegisterUploadRequestBody.supportedUploadMechanism
fromSupportedUploadMechanism
toList< SupportedUploadMechanism >
- Change
OrganizationConnection.fetchMemberOrganizationAccessControl
andOrganizationConnection.findOrganizationAccessControl
to use/OrganizationAcls
endpoint instead of/OrganizationalEntityAcls
endpoint as the LinkedIn API will remove support for organisation entity ACLs and replace it with organisation ACLs on October 30, 2021.
- Ensure
OrganizationConnection.retrieveOrganizationFollowerCount
andOrgnizationConnection. retrieveShareStatistics
can get data for both organization and organization brand pages.
- Update logback dependencies to move away from logback-classic and logback-core due to a security vulnerability. See CVE-2017-5929 for more information. Using ebx-structured-logging instead.
- Add attribute
primaryOrganizationType
in OrganizationBase class - Update
findOrganizationByVanityName
to returnOrganizationBrand
ifprimaryOrganizationType
isBRAND
.
- Update
JsonUtils.getValue
method to handle JsonNumeric values correctly.
- Updated
CommentAction.Attribute.value
to use AttributedEntity, to fix issue where share requests with mentions aren't being persisted correctly.
- Accidentally released. This is the same as 3.0.5
- Add CommentConnection for posting comment to a post (by URN)
- Add explicit dependency for google-api-client
- Updated error handling so that the response body is included in the exception when a 422 error is received after a request to the LinkedIn API
- Updated dependencies
- Add
application/x-wwww-form-urlenconded
header to obtain access token request and update additional header method to add headers as a list.
- Bump sl4j dependencies from 1.7.x to 2.0.x
- Removed google-api-services-oauth2 dependency
- Bump sevntu-checks dependencies from 1.42.0 to 1.44.0
- Fix getShares method in ShareConnection
- Bump google-api-client from 2.0.0 to 2.1.1
- Support LinkedIn Versioning API
- Deprecated V2 connection classes
- Better support for non-default versioned month
- Add boolean support to JsonUtils
- Add support for video
- Mark deprecated classes
- Revert default versioned month (
202301
contains breaking changes) - Fix URL encoding for retrieving a post
- Add constructors and builders for request/response objects
- Replace URN response of
uploadImage
method with full response
- Add support to retrieve image details from LinkedIn
- Extend
Post
object to include image details mapping - Add helper methods to
Post
to extract title, description and image URLs
- Add missing LinkedIn annotations
- Add support to upload video files from URLs
- Add a flag to note that we want to upload a thumbnail image along with the video
- Add support to upload thumbnail image to a video
- Add more detail to debug logs
- Add support to retrieve video details from LinkedIn
- Extend
Post
object to include video details mapping
- Add support to retrieve video details from LinkedIn
- Add missing CommentEntity field to CommentAction
- Update Versioned API to use the 202306 by default
- Update edgeType parameter value for the /networkSizes endpoint to be COMPANY_FOLLOWED_BY_MEMBER instead of CompanyFollowedByMember. This changed in the LinkedIn API 202305 release.
- Update the log level of logs to reduce the excessive number of debug logs when making requests to the LinkedIn endpoints.
- Minor dependency updates
- Add additional URN entity types to URNEntityType enum
- Remove duplicate key in Post object
- Delete all deprecated code for V1 and V2 LinkedIn API endpoints and objects, the last of these endpoints were retired on June 30th 2023
- Remove 'versioned' from class and variable names
- Stop accepting projection parameters when making API requests (support for this parameter was deprecated for different endpoints between 202305, 202306 and 202307)
- Update the default API version to 202307
- Bump nexus-staging-maven-plugin version to 1.6.13
- OrganizationConnection.retrieveShareStatistics now accepts ugcPost type post URNs in addition to the existing share type post URNs.
- Update the CircleCI Build image from ubuntu-2004 to cimg/openjdk:8.0
- Update build from Java 8 to Java 11. This included updating the build image to cimg/openjdk:11.0.
- Update HTTP requests to use Java 11's HTTP client instead of the Google HTTP client.
- Some backwards incompatible changes introduced such as return type of
getCurrentHeaders
and parameter type ofcustomizeConnection
- Updated contributing notes to reference CircleCI
- Update the default API version to 202411.
- Update a number of dependencies, including org.apache.commons:commons-lang3 to 3.17.0.