Created
June 14, 2018 17:14
-
-
Save emilianocanedo/2b5bcb93c9d359f301a8f2b1d9018e3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wf = Workfront(settings.WORKFRONT_USER, | |
| ...: settings.WORKFRONT_PASS, | |
| ...: wf_domain=settings.WORKFRONT_DOMAIN) | |
| workfrontsubs2 = WorkfrontSubscriptionAPI(wf.gen_api_key()) | |
| workfrontsubs2.url_base = 'https://thebridgecorp.sb01.workfront.com/' | |
| workfrintsubs2.get_subscriptions() | |
| obj = { | |
| ...: "objCode": "PROJ", | |
| ...: "eventType": "UPDATE", | |
| ...: "url": "http://PBMNEWSTGWorkFrontELB-1216149718.us-east-1.elb.amazonaws.com/wp/v1/task/start", | |
| ...: "authToken": "" | |
| ...: } | |
| https://support.workfront.com/hc/en-us/articles/115000135574-Event-Subscription-API | |
| workfrontsubs2.subscribe(obj) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment