How use api token in url (not post parameters)?

hi,

i need to return api rest data (json) using url but need send url with authorization token id:secret in one line because the app need in one line this url to return data. How can use because i try using like | url/api/resource/Asset -H "Authorization: token abcde:123456 | but can’t return any.

can make this ?