16 lines
396 B
Python
16 lines
396 B
Python
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",
|
|
}
|