Flowdock

Expand all | Collapse all

how do I get the token for the flow

  • 1.  how do I get the token for the flow

    Posted 05-13-2019 03:44 PM

    Suppose I have a flow called named Kafka. Now I would like to get the token for this flow where I can connect with curl command. Could you please help me on this?



  • 2.  Re: how do I get the token for the flow

    Posted 05-14-2019 05:26 AM

    Please check the following chapter of the doc : 

     

    Create a source for the specified flow. The source will be assigned a flow_token that can be used to push content by the OAuth application to the flow.

     

    and : 

     

    flow_token is only visible in the response of the source creation request. It cannot be retrieved later on. 



  • 3.  Re: how do I get the token for the flow

    Posted 05-14-2019 10:29 AM

    I used the personal token to perform these curls successfully.  The personal token is available here: https://www.flowdock.com/account/tokens 

     

    Post a message to a flow:

    curl -v -X POST -F "event=file" -F "content=@path/to/file.png" https://BASIC-AUTH@api.flowdock.com/flows/ORGANIZATION/FLOW/messages

     

    Create and send an invitation to a flow (it is necessary to keep the "dummy" in the curl)

    curl -X "POST" -d email=timmytest@rally.com https://<personal token>:dummy@api.flowdock.com/flows/<ORG>/<FLOW>/invitations