How can i send headers for authentication?
Solved!Posted in Designs by René Montes de Oca Mon May 09 2016 21:22:31 GMT+0000 (Coordinated Universal Time)·10·Viewed 1,448 times
I need to submit a custom header (X-Auth-Token) with my token as the value.
How can i achieve this with aping?
I'm not sure what you wanna do. Could you submit a jsfiddle or something else?
Each request i submit to the REST API endpoint i must send additional headers, in this case:
I thought that i could add an additional parameter on the directory like this:
I have no idea if it will work or if i should write additional code on the controller to add the headers.
Thank you very much for your quick response
apiNG's first idea is just to GET data. if you wanna POST data, then you need do this in a controller of your template
here is a list of all parameters of the built-in plugin "jsonloader": https://aping.readme.io/docs/usage#built-in-plugin-json-loader
Thank you Jonathan, however i am not trying to POST data, i am talking about a GET request with custom headers.
I will give a look to source and try to figure it out.
Okay. You could send me a pull request for apiNG (https://github.com/JohnnyTheTank/apiNG) when you are done ;)
Hello René Montes de Oca,
now I added this feature. You can use it with apiNG version 1.4.x and higher:
But you could also use the new football-data.org plugin for apiNG: https://github.com/JohnnyTheTank/apiNG-plugin-footballdata
demo: http://plnkr.co/edit/a8Uj8V
marked this as solved
Awesome, thanks for the update Jonathan.
I will give it a try.
René Montes de Oca: does it work for you?
تعریف سئو چیست؟ آموزش SEO - بهینه سازی موتور جستجو
تعریف سئو چیست؟ آموزش SEO - بهینه سازی موتور جستجو
تعریف سئو چیست؟ آموزش SEO - بهینه سازی موتور جستجو
تعریف سئو چیست؟ آموزش SEO - بهینه سازی موتور جستجو
تعریف سئو چیست؟ آموزش SEO - بهینه سازی موتور جستجو
تعریف سئو چیست؟ آموزش SEO - بهینه سازی موتور جستجو
5