php - LinkedIn Companies endpoint error -
i'm using linkedin api , access companies i'm running vague error haven't been able figure out.
i'm using php , php libracy 'happyr\linkedin\linkedin' access api. current application has 'rw_company_admin' permission attached it.
when make call api endpoint '/v1/people/~:(id,first-name,last-name)', correct response.
but when make call '/v1/companies?format=json&is-company-admin=true' endpoint following error:
"invalid company query request"
when perform exact same query in linkedin rest console, response i'm looking for. ideas?
figured out after hours of debugging.
the issue specific php package mentioned in question. linkedin library in use automatically appending 'format=json' query call sparked error.
by removing default output setting in library, call worked fine.
Comments
Post a Comment