1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "credential": {
10 "@context": [
11 "https://www.w3.org/ns/credentials/v2",
12 "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
13 ],
14 "id": "urn:uuid:5b6d2c1e-0c1a-4a52-9a53-0c0f7a1c9e11",
15 "type": [
16 "VerifiableCredential",
17 "OpenBadgeCredential",
18 ],
19 "issuer": {
20 "id": "did:key:z6MkgAnvkP45uNxwCKeNdt6wrYkEjpYX4f7Nrd8MQqFL8Fbn",
21 "type": ["Profile"],
22 "name": "Example University",
23 },
24 "validFrom": "2025-01-15T00:00:00Z",
25 "name": "Example Achievement",
26 "credentialSubject": {
27 "type": ["AchievementSubject"],
28 "identifier": [{
29 "type": "IdentityObject",
30 "hashed": False,
31 "identityHash": "learner@example.org",
32 "identityType": "emailAddress",
33 }],
34 "achievement": {
35 "id": "https://issuer.example/achievements/1",
36 "type": ["Achievement"],
37 "name": "Example Achievement",
38 "description": "Awarded for completing the example course.",
39 "criteria": { "narrative": "Complete all modules with a passing grade." },
40 },
41 },
42 "proof": {
43 "type": "DataIntegrityProof",
44 "cryptosuite": "eddsa-jcs-2022",
45 "created": "2025-01-15T00:00:00Z",
46 "verificationMethod": "did:key:z6MkgAnvkP45uNxwCKeNdt6wrYkEjpYX4f7Nrd8MQqFL8Fbn#z6MkgAnvkP45uNxwCKeNdt6wrYkEjpYX4f7Nrd8MQqFL8Fbn",
47 "proofPurpose": "assertionMethod",
48 "proofValue": "z3iyvJ3hfobNHzMPsBC39QPoo57kX7UWTBkCjL7wda4hxWDoeDeb1tQPq7HueQbbAxBEofghDqXa1rG8MEJexaUWt",
49 },
50 },
51 "recipientIdentity": "learner@example.org",
52}
53
54
55run = client.actor("davidcondrey/wl-open-badges-verifier").call(run_input=run_input)
56
57
58print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
59for item in client.dataset(run.default_dataset_id).iterate_items():
60 print(item)
61
62