This is pymetrics's public API. The API can be used to get information on candidates as part of a job application workflow, or for employee career pathing and development.
The typical use case for this is to support an externally initiated assessment for a candidate job application. This is often done "inline" with the candidate's application, or asynchronously after the candidate submits their application. This data can then be used for career pathing and employee development in subsequent stages.
The expected sequence of API calls is:
Generate OAuth Tokenwith the OAuth Client ID and Secret you've been providedGet Assessment Configurationsto determine which configured assessment templates are availableCreate Assessment Orderfor a selected Assessment and candidate job applicationGet Assessment Orderto receive the recommendation results and reports, once they are available
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2.2.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonLegacyClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on a repository, you can install directly using:
pip install pymetrics_soft_skills_sdkThen import the package:
import pymetrics_soft_skills_sdkInstall via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import pymetrics_soft_skills_sdkPlease follow the installation procedure and then run the following:
from __future__ import print_function
import time
import pymetrics_soft_skills_sdk
from pymetrics_soft_skills_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = pymetrics_soft_skills_sdk.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with pymetrics_soft_skills_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pymetrics_soft_skills_sdk.DefaultApi(api_client)
authorization = 'authorization_example' # str | Standard Bearer token request, from `Generate OAuth Token`. Formatted `Bearer {token}` (optional)
x_api_key = 'x_api_key_example' # str | Mandatory API Key that pymetrics will provide (optional)
order_request = pymetrics_soft_skills_sdk.OrderRequest() # OrderRequest | Candidate, assessment, and job application details (optional)
try:
# Create Assessment Order
api_response = api_instance.mercury_create_order_v2(authorization=authorization, x_api_key=x_api_key, order_request=order_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->mercury_create_order_v2: %s\n" % e)
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | mercury_create_order_v2 | POST /mercury/v2/orders | Create Assessment Order |
| DefaultApi | mercury_get_config_v2 | GET /mercury/v2/assessments | Get Assessment Configurations |
| DefaultApi | mercury_list_orders_v2 | GET /mercury/v2/orders | List Assessment Orders |
| DefaultApi | mercury_o_auth_v2 | POST /mercury/v2/oauth/token | Generate OAuth Token |
| DefaultApi | mercury_retrieve_factor_content | GET /mercury/v2/factorContent/{uuid} | Get Factor Content |
| DefaultApi | mercury_retrieve_order_v2 | GET /mercury/v2/orders/{uuid} | Get Assessment Order |
- AssessmentType
- AtsType
- Configuration
- ErrorResponse
- ListOrdersRequest
- ListOrdersResponse
- MercuryAssessment
- MercuryAssessmentOrder
- MercuryCandidate
- MercuryDevelopmentReportContent
- MercuryFactorContent
- MercuryModelDirection
- MercuryOrderFactorContent
- MercuryOrderMetadata
- MercuryReport
- MercuryResult
- MercuryRetrieveFactorContentRequest
- OAuthRequest
- OAuthResponse
- OrderCreateResponse
- OrderRequest
- PontemOrderStatuses
- PontemReportTypes
Michelle Tsai [email protected]