Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save emilianocanedo/2b5bcb93c9d359f301a8f2b1d9018e3b to your computer and use it in GitHub Desktop.

Select an option

Save emilianocanedo/2b5bcb93c9d359f301a8f2b1d9018e3b to your computer and use it in GitHub Desktop.
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