1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "connectDescriptor": {
10 "key": "com.example.connect-app",
11 "name": "Example Connect App",
12 "baseUrl": "https://app.example.com",
13 "authentication": { "type": "jwt" },
14 "lifecycle": { "installed": "/installed" },
15 "enableLicensing": True,
16 "scopes": ["READ"],
17 "modules": { "jiraIssueGlances": [{
18 "key": "example-glance",
19 "name": { "value": "Example" },
20 "url": "/glance",
21 }] },
22 },
23 "forgeManifestYaml": """app:
24 id: ari:cloud:ecosystem::app/00000000-0000-0000-0000-000000000000
25 connect:
26 key: com.example.connect-app
27 remote: connect-backend
28 licensing:
29 enabled: true
30modules:
31 jira:issueContext:
32 - key: example-context
33 resource: main
34resources:
35 - key: main
36 path: static/app/build
37remotes:
38 - key: connect-backend
39 baseUrl: https://app.example.com
40 operations:
41 - compute
42permissions:
43 scopes: []
44""",
45 "releaseGate": {
46 "enabled": False,
47 "failOnSeverity": "high",
48 "failOnNotAvailableModule": True,
49 },
50}
51
52
53run = client.actor("venturesome_lunar/atlassian-app-change-impact-auditor").call(run_input=run_input)
54
55
56print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
57for item in client.dataset(run.default_dataset_id).iterate_items():
58 print(item)
59
60