Skip to content

Instantly share code, notes, and snippets.

@imtrinity94
Created July 24, 2023 14:21
Show Gist options
  • Save imtrinity94/396bbcf675eb5d28d99dcbb4e7a62bbe to your computer and use it in GitHub Desktop.
Save imtrinity94/396bbcf675eb5d28d99dcbb4e7a62bbe to your computer and use it in GitHub Desktop.
If you go with the API route then I suggest to use a polyglot action in the language of your choice. The context object in the polyglot containers hold an API and a token to make callbacks to itself. Then you can use the appropriate REST libs for the given language to do what you want. I have a simple action that just returns the url and token t…
def handler(context, inputs):
outputs = {
"vcoUrl": context['vcoUrl'],
"token": context['getToken']()
}
return outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment