{"action":"created","issue":{"url":"https://api.github.com/repos/masiuchi/mt-data_api-client/issues/10","repository_url":"https://api.github.com/repos/masiuchi/mt-data_api-client","labels_url":"https://api.github.com/repos/masiuchi/mt-data_api-client/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/masiuchi/mt-data_api-client/issues/10/comments","events_url":"https://api.github.com/repos/masiuchi/mt-data_api-client/issues/10/events","html_url":"https://github.com/masiuchi/mt-data_api-client/issues/10","id":294188365,"number":10,"title":"Full usage?","user":{"login":"Kagetsuki","id":864634,"avatar_url":"https://avatars3.githubusercontent.com/u/864634?v=4","gravatar_id":"","url":"https://api.github.com/users/Kagetsuki","html_url":"https://github.com/Kagetsuki","followers_url":"https://api.github.com/users/Kagetsuki/followers","following_url":"https://api.github.com/users/Kagetsuki/following{/other_user}","gists_url":"https://api.github.com/users/Kagetsuki/gists{/gist_id}","starred_url":"https://api.github.com/users/Kagetsuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kagetsuki/subscriptions","organizations_url":"https://api.github.com/users/Kagetsuki/orgs","repos_url":"https://api.github.com/users/Kagetsuki/repos","events_url":"https://api.github.com/users/Kagetsuki/events{/privacy}","received_events_url":"https://api.github.com/users/Kagetsuki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-04T10:56:36Z","updated_at":"2018-02-04T14:12:01Z","closed_at":null,"author_association":"NONE","body":"Would it be possible to outline a few use cases in the README? Specifically, I'm unsure on how I'm supposed to authenticate with this client. From the specs it appears as if you're doing it by hand somehow. Also, I'm unsure of how you would use this to do something like upload a file ~ https://www.movabletype.jp/developers/data-api/v3-reference.html#assets-upload-post ? Read the file contents into the :file option in the call?"},"comment":{"url":"https://api.github.com/repos/masiuchi/mt-data_api-client/issues/comments/362909569","html_url":"https://github.com/masiuchi/mt-data_api-client/issues/10#issuecomment-362909569","issue_url":"https://api.github.com/repos/masiuchi/mt-data_api-client/issues/10","id":362909569,"user":{"login":"masiuchi","id":1443490,"avatar_url":"https://avatars1.githubusercontent.com/u/1443490?v=4","gravatar_id":"","url":"https://api.github.com/users/masiuchi","html_url":"https://github.com/masiuchi","followers_url":"https://api.github.com/users/masiuchi/followers","following_url":"https://api.github.com/users/masiuchi/following{/other_user}","gists_url":"https://api.github.com/users/masiuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/masiuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masiuchi/subscriptions","organizations_url":"https://api.github.com/users/masiuchi/orgs","repos_url":"https://api.github.com/users/masiuchi/repos","events_url":"https://api.github.com/users/masiuchi/events{/privacy}","received_events_url":"https://api.github.com/users/masiuchi/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T14:12:01Z","updated_at":"2018-02-04T14:12:01Z","author_association":"OWNER","body":"@Kagetsuki \r\nThank you for your comment.\r\n\r\n> I'm unsure on how I'm supposed to authenticate with this client.\r\n\r\nPlease see the following sample to authenticate.\r\nSorry there is a bug. I will update README.md after fixing it.\r\n\r\n```ruby\r\nclient = MT::DataAPI::Client.new(\r\n  base_url: 'http://localhost/mt/mt-data-api.cgi',\r\n  client_id: 'mt-ruby'\r\n)\r\n\r\n# call authenticate endpoint and \r\nclient.call(:authenticate, {\r\n  username: 'username'\r\n  password: 'webservice password',\r\n  clientId: 'mt-ruby',  # required. this is a bug.\r\n})\r\n\r\n# call the endpoint that requires authenticate\r\nresult_json = client.call(:list_plugins)\r\n```\r\n\r\n> Read the file contents into the :file option in the call?\r\n\r\nSorry, currently it cannot upload file. I will fix it.\r\n"}}
{"actor":{"display_login":"masiuchi"}}