Weekdone
Follow the steps below to generate a ClientID and Access Token and connect your Weekdone instance to the Universal Talent API.
Login to Weekdone and go to Company settings

In Settings, select Applications from the left sidebar.
Go to Applications and select new Application
Add Application name and Redirect URI (this can be anything). Click Save or Update. Make note of the new Client ID and Client Secret

Open new browser tab and browse this:
https://weekdone.com/oauth_authorize?client_id=<YOUR_CLIENT_ID>&redirect_uri=<YOUR_REDIRECT_URI>&response_type=code&state=123
Copy the code from the redirect URI that the browser sends you to Example:
http://localhost:8080/?code=<YOUR_AUTH_CODE>&state=123
Make a POST request to get the access token and refresh token
POST https://weekdone.com/oauth_token
Content-Type: application/x-www-form-urlencoded
code = <YOUR_AUTH_CODE> &
grant_type = authorization_code &
client_id = <YOUR_CLIENT_ID> &
client_secret = <YOUR_CLIENT_SECRET> &
redirect_uri = <YOUR_REDIRECT_URI>
The response will look something like the following:
{
"access_token":"<ACCESS_TOKEN>",
"refresh_token":"<REFRESH_TOKEN>",
"token_type":"bearer",
"expires_in":3600,
"user":{
"id":"<YOUR_ID>",
"name":"<YOUR_NAME>",
"email":"<YOUR_EMAIL>"
}
}
Connect the API to Peoplelogic.dev
Send the following request to your API endpoint and you'll start to see data start sync'ing into your Peoplelogic.dev workspace. Remember, replace the values surrounded by {{
and }}
(including the curly brackets!) with your actual values.
POST https://api.peoplelogic.dev/api/v1/app
Content-Type: application/json
Authorization: Bearer {{demoOrgToken}}
{
"type": "pl:sync:weekdone",
"internal": false,
"name": "{{your organization in weekdone}}",
"externalId": "{{your organization shortname}}-weekdone",
"secretData": {
"accessToken": "{{yourAccessToken}}"
}
}
Last updated
Was this helpful?