-
Instale o plugin
insomnia-plugin-fastcash-fcx
-
No
Base Environment
do Insomnia defina a variaveluse-fastcash-fcx-on
que é o nome do objeto que contém os hosts da apiexemplo:
{ "use-fastcash-fcx-on": "api-fastcash", "api-fastcash": { "url": "https://dev.meu.cash/apiv10" } }
-
Pode ser no
Base Environment
ou qualquer outro, lá você precisa configurar uma propriedadefastcash
onde terá as credenciais dentro de$.credentials.apiKey
e$.credentials.apiSecret
exemplo:{ "fastcash": { "name": "meu-nome", "credentials": { "apiKey": "c29e2a13-b442-489a-8f8b-39436ecbb02f", "apiSecret": "BialAI1Bf0P06g6NSu/efAv1OD4+K/Ac0nEwESn9PAQ=" } } }
-
Pronto, todo request em que a URL está dentro de uma das propriedades do objeto escolhido terá um FCX injetado no Header (de acordo com as configurações)
-
Notifications
You must be signed in to change notification settings - Fork 0
lsancho/insomnia-plugin-fastcash-fcx
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Insomnia plugin that add authorization header (fcx) used on Fastcash API
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published