fix header array
return true if accesstoken was successfully received
handle json response