<script
type="text/javascript"
src="https://integration.seek.com/panels/SeekApi.js"
></script>
SeekApi.render function renders an instance of the panel in the specified DOM element.SeekApi.render(containerNode, 'candidateProfile', props);
containerNode:
The DOM element to render the panel into.'candidateProfile':
The name of the panel to render.props:
Props for rendering the panel.Prop | Type | Description |
|---|---|---|
getAuthToken | () => Promise<string> | Function to call to retrieve the browser token to use when calling the SEEK API. |
candidate | object | The details of the candidate to view the profile of. This includes: email (string). |
hirerId | string | The SEEK hirer ID viewing the candidate profile. |
context | stringoptional | The context in which the candidate profile is being viewed. Supported values are APPLICANT_LIST and CANDIDATE_DATABASE. |
position | objectoptional | In the APPLICANT_LIST context, provide the details of the job the candidate is applying for. |
applicationStatus | objectoptional | In the APPLICANT_LIST context, provide the status of the candidate’s application. |
locale | stringoptional | Specifies the locale to display content in, e.g. en-AU. Supported locales are outlined in the content localisation documentation. |
getAuthToken function passed to it.getAuthToken function should request a new token for the hirer ID in positionProfile.positionOrganizations.
If a user switches to a different SEEK hirer account,
your software should re-render the panel with the new hirer ID in positionProfile.positionOrganizations,
and ensure that subsequent invocations of getAuthToken will request a token for the new hirer ID.query:seek-candidate-profiles scope.getAuthToken function.POST https://graphql.seek.com/auth/token HTTP/2
Authorization: Bearer PARTNER_TOKEN_HERE
Content-Type: application/json
User-Agent: YourPartnerService/1.2.3
{"hirerId": "seekAnzPublicTest:organization:seek:93WyyF1h",
"scope": "query:seek-candidate-profiles",
"userId": "317665"
}