{"action":"closed","issue":{"url":"https://api.github.com/repos/josuebrunel/myql/issues/103","labels_url":"https://api.github.com/repos/josuebrunel/myql/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/josuebrunel/myql/issues/103/comments","events_url":"https://api.github.com/repos/josuebrunel/myql/issues/103/events","html_url":"https://github.com/josuebrunel/myql/issues/103","id":83155258,"number":103,"title":"Adding PUT/POST capability","user":{"login":"unpairestgood","id":11055355,"avatar_url":"https://avatars.githubusercontent.com/u/11055355?v=3","gravatar_id":"","url":"https://api.github.com/users/unpairestgood","html_url":"https://github.com/unpairestgood","followers_url":"https://api.github.com/users/unpairestgood/followers","following_url":"https://api.github.com/users/unpairestgood/following{/other_user}","gists_url":"https://api.github.com/users/unpairestgood/gists{/gist_id}","starred_url":"https://api.github.com/users/unpairestgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unpairestgood/subscriptions","organizations_url":"https://api.github.com/users/unpairestgood/orgs","repos_url":"https://api.github.com/users/unpairestgood/repos","events_url":"https://api.github.com/users/unpairestgood/events{/privacy}","received_events_url":"https://api.github.com/users/unpairestgood/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"josuebrunel","id":1620640,"avatar_url":"https://avatars.githubusercontent.com/u/1620640?v=3","gravatar_id":"","url":"https://api.github.com/users/josuebrunel","html_url":"https://github.com/josuebrunel","followers_url":"https://api.github.com/users/josuebrunel/followers","following_url":"https://api.github.com/users/josuebrunel/following{/other_user}","gists_url":"https://api.github.com/users/josuebrunel/gists{/gist_id}","starred_url":"https://api.github.com/users/josuebrunel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josuebrunel/subscriptions","organizations_url":"https://api.github.com/users/josuebrunel/orgs","repos_url":"https://api.github.com/users/josuebrunel/repos","events_url":"https://api.github.com/users/josuebrunel/events{/privacy}","received_events_url":"https://api.github.com/users/josuebrunel/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-05-31T18:35:51Z","updated_at":"2015-06-07T10:50:03Z","closed_at":"2015-06-07T10:50:03Z","body":"Hello Josue,\r\n\r\nSo, I'm attempting to use the API for more than just GETs, I'm trying to use PUT and POSTs to add functionality (like benching or adding a player on my team) to my fantasy sports specific version of your code. According to the Fantasy Sports documentation (https://developer.yahoo.com/fantasysports/guide/) I should be able to do this... and for example this code (https://github.com/jcreamer898/fantasy-sports) in node.js is apparently capable of doing it.\r\n\r\nMy attempt so far has been a function that looks like this:\r\n\r\n```python\r\ndef put(self):\r\n    ''' This method uses PUT to modify a resource\r\n    '''\r\n    url = 'http://fantasysports.yahooapis.com/fantasy/v2/team/346.l.1328.t.12/roster'\r\n    date = '2015-06-01'\r\n    hit1key = '346.p.9340' # Jake Marisnik\r\n    pos1 = 'OF'\r\n    hit2key = '346.p.9719' # David Peralta\r\n    pos2 = 'BN\"\r\n\r\n    xmlString = ('<?xml version=\"1.0\"?>'\r\n'<fantasy_content>'\r\n  '<roster>'\r\n    '<coverage_type>date</coverage_type>'\r\n    '<date>%s</date>'\r\n    '<players>'\r\n      '<player>'\r\n        '<player_key>%s</player_key>'\r\n        '<position>%s</position>'\r\n      '</player>'\r\n      '<player>'\r\n        '<player_key>%s</player_key>'\r\n        '<position>%s</position>'\r\n      '</player>'\r\n    '</players>'\r\n  '</roster>'\r\n'</fantasy_content>\\n') % (date, hit1key, pos1, hit2key, pos2)\r\n\r\nif vars(self).get('oauth'): \r\n        self.url = self.private_url\r\n        if not self.oauth.token_is_valid(): # Refresh token if token has expired\r\n            self.oauth.refresh_token()\r\n response = self.oauth.session.put(url, xmlString)\r\n return None\r\n```\r\n\r\n\r\nI know this isn't directly related to what you're working on and it will also be difficult for you to test because you need to have a team to make changes... but if you see any obvious error or have any input I appreciate it.\r\n\r\nThanks!\r\nPaul"}}