Fetching text for a parameter from a WEB API that does NOT return JSON or XML

I am trying to get the token from a web api (Verizon API). The process they want you to follow is

  1. get the token
    a. It will return a text only result that is the token
    b. This token then has to be passed to another API for the specifice entity you are after. In my case GPS locations.
    c. Here is a sample of the token
    i. eyJhbGciOiJSUzI1NiIsImtpZCI6IjJDREY5REVGNkI2RDMwNTM3QTdFRTZENzI3MDYxQzkxQzgzMTQ1MjkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJMTi1kNzJ0dE1GTjZmdWJYSndZY2tjZ3hSU2sifQ.eyJuYmYiOjE3MTE5ODQ0MDAsImV4cCI6MTcxMjA3MDgwMCwiaXNzIjoiaHR0cHM6Ly9hdXRoLnVzLmZsZWV0bWF0aWNzLmNvbS90b2tlbiIsImF1ZCI6WyJodHRwczovL2F1dGgudXMuZmxlZXRtYXRpY3MuY29tL3Rva2VuL3Jlc291cmNlcyIsIm9wZW5pZCIsInByb2ZpbGUiLCJyZXZlYWwiXSwiY2xpZW50X2lkIjoicmV2ZWFsLWV4dGVybmFsdG9rZW4tYXBpIiwic3ViIjoiYTljYzI2NzEtYWMwNy00NDEwLWViY2YtMDhkOTBiYjliYWI3IiwiYXV0aF90aW1lIjoxNzExOTg0NDAwLCJpZHAiOiJsb2NhbCIsInJldmVhbF9hY2NvdW50X2lkIjoiMTIwODk1NSIsInJldmVhbF91c2VyX2lkIjoiNTQ2ODQ4NyIsInJldmVhbF91c2VyX3R5cGVfaWQiOiIzIiwidW5pcXVlX25hbWUiOiJqYWF0LnNvbHV0aW9uc0BnbWFpbC5jb20iLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJSRVNUX2Fzc2V0c0BDYXJtZW5UcmFuLmNvbSIsIm5hbWUiOiJSRVNUX2Fzc2V0c0BDYXJtZW5UcmFuLmNvbSIsImVtYWlsIjoiUkVTVF9hc3NldHNAQ2FybWVuVHJhbi5jb20iLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImp0aSI6ImZiNmVhM2I5MjU3ZTY3NDM5YTM2YTlkOGJjZTBlMDNhIiwiaWF0IjoxNzExOTg0NDAwLCJzY29wZSI6WyJvcGVuaWQiLCJwcm9maWxlIiwicmV2ZWFsIl0sImFtciI6WyJwd2QiXX0.S05UALlwdIwP4Lc-jpFKe0kH7YLSFdxSSdBxQYxKjhAHlFhowqKkabx9CLkUCcyWjG02WMjvwjMasyvbGpDBQ-Ef8IgyzUgoFaSjQdJWLxkljMyl9fPKr6DjaTgBAIXe9yLiKNAOTSgo7F0OvsBhdRDaYMDW-IsO_P1PdaeNDXXXyDKnMK6o7vGz1cA7g5DM8TK0uJU_Ru_sWYvhf50BJVa677JMSKGqf3LhYwkEX3OesxjSbWq-eFukSnfgT3DFxNyi_FVg-7hZslHNFXd2OL1KR-kgW8zZs1JtJLcpQwlW06ie3Mri_1p8V78eTVBgsMWP-HRk7PtZrD9RUYM1BA
    d. The token is good for 20 minutes
  2. What action should I be using to get the token. It is a URL that asks for userid and password.
  3. Then place that result in a parameter to call anther module that will fetch the entity. The header of that requires an API key and the token abover.
  4. So that is the workflow. Any ideas on what actions or techniques to use to achieve this goal.

image

image

It's not entirely clear from the second screenshot, but judging by the error message, it seems like you're using the "Import from Web API" action that only accepts JSON or XML responses (and parses them automatically)

Instead, use the "Web request" action, because it doesn't do automatic parsing, so you can see the actual response from the API.

Yep, that is it. Thanks for the nudge in the correct direction. Now I will get it into a parm for the down stream reqeusts.

Thank you.
WEB REQUEST was the trick then it will feed IMPORT from WebAPI.

One more gate cleared.