-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
115 changed files
with
1,716 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
--- | ||
title: "Quick Start" | ||
description: "Read and write data to multiple ATS platforms using a single API" | ||
icon: "star" | ||
--- | ||
|
||
## Create a candidate in an ATS using Panora | ||
|
||
<Check> | ||
We assume for this tutorial that you have a valid Panora API Key, and a | ||
`connection_token`. Find help [here](/core-concepts/auth). | ||
</Check> | ||
|
||
<Steps> | ||
<Info> | ||
You can find the Typescript SDK [here](https://www.npmjs.com/package/@panora/sdk-typescript) | ||
</Info> | ||
<Step title="Setup your API Key in your code:"> | ||
<CodeGroup> | ||
```javascript TypeScript SDK | ||
import { Panora } from '@panora/sdk'; | ||
const panora = new Panora({ apiKey: process.env.API_KEY }); | ||
``` | ||
|
||
```python Python SDK | ||
import os | ||
from panora_sdk import Panora | ||
panora = Panora( | ||
api_key=os.getenv("API_KEY", ""), | ||
) | ||
``` | ||
</CodeGroup> | ||
</Step> | ||
|
||
<Step title="Create an candidate in your CRM:"> | ||
<Info>In this example, we will create a contact in a CRM. Visit other sections of the documentation to find category-specific examples</Info> | ||
<CodeGroup> | ||
|
||
```shell curl | ||
curl --request POST \ | ||
--url https://api.panora.dev/ats/applications \ | ||
--header 'x-api-key: <api-key> ' \ | ||
--header 'Content-Type: application/json' \ | ||
--header 'x-connection-token: <connection_token>' \ | ||
--data '{ | ||
"appliedAt": "2024-10-01T12:00:00Z", | ||
"rejectedAt": "2024-10-01T12:00:00Z", | ||
"offers": [ | ||
"801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"12345678-1234-1234-1234-123456789012" | ||
], | ||
"source": "Source Name", | ||
"creditedTo": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"currentStage": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"rejectReason": "Candidate not experienced enough", | ||
"candidateId": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"jobId": "801f9ede-c698-4e66-a7fc-48d19eebaa4f" | ||
}' | ||
``` | ||
|
||
```javascript TypeScript | ||
import { Panora } from "@panora/sdk"; | ||
|
||
const panora = new Panora({ | ||
apiKey: process.env.API_KEY, | ||
}); | ||
|
||
const result = await panora.ats.applications.create({ | ||
xConnectionToken: "YOUR_USER_CONNECTION_TOKEN", | ||
remoteData: false, | ||
unifiedAtsApplicationInput: { | ||
appliedAt: new Date("2024-10-01T12:00:00Z"), | ||
rejectedAt: new Date("2024-10-01T12:00:00Z"), | ||
offers: [ | ||
"801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"12345678-1234-1234-1234-123456789012", | ||
], | ||
source: "Source Name", | ||
creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
rejectReason: "Candidate not experienced enough", | ||
candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
}, | ||
}); | ||
|
||
console.log(result); | ||
``` | ||
|
||
```python Python | ||
import os | ||
from panora_sdk import Panora | ||
|
||
panora = Panora( | ||
api_key=os.getenv("API_KEY", ""), | ||
) | ||
|
||
body = { | ||
"appliedAt": "2024-10-01T12:00:00Z", | ||
"rejectedAt": "2024-10-01T12:00:00Z", | ||
"offers": [ | ||
"801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"12345678-1234-1234-1234-123456789012", | ||
], | ||
"source": "Source Name", | ||
"creditedTo": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"currentStage": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"rejectReason": "Candidate not experienced enough", | ||
"candidateId": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
"jobId": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", | ||
} | ||
|
||
res = panora.ats.applications.create(x_connection_token="YOUR_USER_CONNECTION_TOKEN", unified_ats_application_input={}) | ||
|
||
print(res) | ||
``` | ||
</CodeGroup> | ||
</Step> | ||
|
||
</Steps> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.