{"action":"created","issue":{"url":"https://api.github.com/repos/Tinder/Scarlet/issues/6","repository_url":"https://api.github.com/repos/Tinder/Scarlet","labels_url":"https://api.github.com/repos/Tinder/Scarlet/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Tinder/Scarlet/issues/6/comments","events_url":"https://api.github.com/repos/Tinder/Scarlet/issues/6/events","html_url":"https://github.com/Tinder/Scarlet/issues/6","id":333832733,"node_id":"MDU6SXNzdWUzMzM4MzI3MzM=","number":6,"title":"How to add token in header ?","user":{"login":"mhdtouban","id":2502415,"node_id":"MDQ6VXNlcjI1MDI0MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/2502415?v=4","gravatar_id":"","url":"https://api.github.com/users/mhdtouban","html_url":"https://github.com/mhdtouban","followers_url":"https://api.github.com/users/mhdtouban/followers","following_url":"https://api.github.com/users/mhdtouban/following{/other_user}","gists_url":"https://api.github.com/users/mhdtouban/gists{/gist_id}","starred_url":"https://api.github.com/users/mhdtouban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhdtouban/subscriptions","organizations_url":"https://api.github.com/users/mhdtouban/orgs","repos_url":"https://api.github.com/users/mhdtouban/repos","events_url":"https://api.github.com/users/mhdtouban/events{/privacy}","received_events_url":"https://api.github.com/users/mhdtouban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T20:47:01Z","updated_at":"2018-06-21T21:38:02Z","closed_at":null,"author_association":"NONE","body":"In retrofit, we can embed @HeaderMap and @FieldMap in case of POST or @QueryMap in case of GET. This way we can embed an authorized token in the header and pass by parameters either in GET or as a form in POST. My question, how can we achieve a similar thing in scarlet to pass by authorization token to the server?"},"comment":{"url":"https://api.github.com/repos/Tinder/Scarlet/issues/comments/399251773","html_url":"https://github.com/Tinder/Scarlet/issues/6#issuecomment-399251773","issue_url":"https://api.github.com/repos/Tinder/Scarlet/issues/6","id":399251773,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTI1MTc3Mw==","user":{"login":"zhxnlai","id":4694896,"node_id":"MDQ6VXNlcjQ2OTQ4OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/4694896?v=4","gravatar_id":"","url":"https://api.github.com/users/zhxnlai","html_url":"https://github.com/zhxnlai","followers_url":"https://api.github.com/users/zhxnlai/followers","following_url":"https://api.github.com/users/zhxnlai/following{/other_user}","gists_url":"https://api.github.com/users/zhxnlai/gists{/gist_id}","starred_url":"https://api.github.com/users/zhxnlai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhxnlai/subscriptions","organizations_url":"https://api.github.com/users/zhxnlai/orgs","repos_url":"https://api.github.com/users/zhxnlai/repos","events_url":"https://api.github.com/users/zhxnlai/events{/privacy}","received_events_url":"https://api.github.com/users/zhxnlai/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T21:38:02Z","updated_at":"2018-06-21T21:38:02Z","author_association":"COLLABORATOR","body":"You can use an [interceptor](https://github.com/square/okhttp/wiki/Interceptors#rewriting-requests) to add headers to requests."}}
{"actor":{"display_login":"zhxnlai"}}