{"action":"opened","issue":{"url":"https://api.github.com/repos/chitamoor/Rester/issues/14","labels_url":"https://api.github.com/repos/chitamoor/Rester/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/chitamoor/Rester/issues/14/comments","events_url":"https://api.github.com/repos/chitamoor/Rester/issues/14/events","html_url":"https://github.com/chitamoor/Rester/issues/14","id":111762826,"number":14,"title":"Sending JSON payload to a post request ?","user":{"login":"asmodehn","id":221256,"avatar_url":"https://avatars.githubusercontent.com/u/221256?v=3","gravatar_id":"","url":"https://api.github.com/users/asmodehn","html_url":"https://github.com/asmodehn","followers_url":"https://api.github.com/users/asmodehn/followers","following_url":"https://api.github.com/users/asmodehn/following{/other_user}","gists_url":"https://api.github.com/users/asmodehn/gists{/gist_id}","starred_url":"https://api.github.com/users/asmodehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmodehn/subscriptions","organizations_url":"https://api.github.com/users/asmodehn/orgs","repos_url":"https://api.github.com/users/asmodehn/repos","events_url":"https://api.github.com/users/asmodehn/events{/privacy}","received_events_url":"https://api.github.com/users/asmodehn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-16T05:29:35Z","updated_at":"2015-10-16T05:29:35Z","closed_at":null,"body":"Strangely this hasn't been working for me as simply as I expected...\r\n\r\nI can't see an example that sends json data as part of the POST request in the README.\r\nAlso when I dive into the code I see only headers and params being taken care of in the request : \r\n```python\r\n    def __init__(self, **kwargs):\r\n        self.extra_request_opts = kwargs\r\n\r\n    def request(self, api_url, method, headers, params, is_raw):\r\n        self.logger.info(\r\n            '\\n Invoking REST Call... api_url: %s, method: %s, headers %s : ', api_url, method, headers)\r\n\r\n        try:\r\n            func = getattr(requests, method)\r\n        except AttributeError:\r\n            self.logger.error('undefined HTTP method!!! %s', method)\r\n            raise\r\n        response = func(api_url, headers=headers, params=params, **self.extra_request_opts)\r\n```\r\nI dont see either `data` or `json` as I would expect here...\r\nAny hint ? Something I missed or something that needs fixing ?"}}