diff --git a/Scripts/API_Tests/accredible-create.py b/Scripts/API_Tests/accredible-create.py new file mode 100644 index 00000000..5a14a2c4 --- /dev/null +++ b/Scripts/API_Tests/accredible-create.py @@ -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", +}