Accredible Script Started
This commit is contained in:
15
Scripts/API_Tests/accredible-create.py
Normal file
15
Scripts/API_Tests/accredible-create.py
Normal file
@ -0,0 +1,15 @@
|
||||
import requests
|
||||
|
||||
url = "https://api.accredible.com/v1/credentials"
|
||||
# POST
|
||||
attributes = {
|
||||
# id: this can be any string. perhaps we set it to an email for easy ref?
|
||||
recipient.name: "{{ learner.name }}",
|
||||
recipient.email: "{{ learner.email }}",
|
||||
group_id: 461982,
|
||||
name: "Credential Name",
|
||||
issued_on: "date",
|
||||
expired_on: "date",
|
||||
complete: "bool",
|
||||
private: "bool",
|
||||
}
|
||||
Reference in New Issue
Block a user