How to access third party rest api using http_poller,http filter and ruby filter using basic authentication,header and body

What's the problem with using

body => "grant_type=password&username=&password=< Password>&scope=< Area UUID>" body_format => "text"

as I suggested in the other thread about this?