{"action":"created","issue":{"url":"https://api.github.com/repos/MSOpenTech/o365-moodle/issues/41","labels_url":"https://api.github.com/repos/MSOpenTech/o365-moodle/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/MSOpenTech/o365-moodle/issues/41/comments","events_url":"https://api.github.com/repos/MSOpenTech/o365-moodle/issues/41/events","html_url":"https://github.com/MSOpenTech/o365-moodle/issues/41","id":68091429,"number":41,"title":"O365 China API endpoints are not included in the code","user":{"login":"martincai","id":5977543,"avatar_url":"https://avatars.githubusercontent.com/u/5977543?v=3","gravatar_id":"","url":"https://api.github.com/users/martincai","html_url":"https://github.com/martincai","followers_url":"https://api.github.com/users/martincai/followers","following_url":"https://api.github.com/users/martincai/following{/other_user}","gists_url":"https://api.github.com/users/martincai/gists{/gist_id}","starred_url":"https://api.github.com/users/martincai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martincai/subscriptions","organizations_url":"https://api.github.com/users/martincai/orgs","repos_url":"https://api.github.com/users/martincai/repos","events_url":"https://api.github.com/users/martincai/events{/privacy}","received_events_url":"https://api.github.com/users/martincai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-13T13:04:59Z","updated_at":"2015-07-21T14:33:36Z","closed_at":null,"body":"O365 is a separate instance from rest of world. It's API endpoints are different. Please see: https://msdn.microsoft.com/en-us/office/office365/api/o365-china-endpoints\r\n\r\nForking the code to create a China version of the plug-ins seems unnecessary. Can we include a switch which toggles the specific set of API endpoints in plug-in configuration?"},"comment":{"url":"https://api.github.com/repos/MSOpenTech/o365-moodle/issues/comments/123341938","html_url":"https://github.com/MSOpenTech/o365-moodle/issues/41#issuecomment-123341938","issue_url":"https://api.github.com/repos/MSOpenTech/o365-moodle/issues/41","id":123341938,"user":{"login":"jamesmcq","id":856093,"avatar_url":"https://avatars.githubusercontent.com/u/856093?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmcq","html_url":"https://github.com/jamesmcq","followers_url":"https://api.github.com/users/jamesmcq/followers","following_url":"https://api.github.com/users/jamesmcq/following{/other_user}","gists_url":"https://api.github.com/users/jamesmcq/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmcq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmcq/subscriptions","organizations_url":"https://api.github.com/users/jamesmcq/orgs","repos_url":"https://api.github.com/users/jamesmcq/repos","events_url":"https://api.github.com/users/jamesmcq/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmcq/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T14:33:36Z","updated_at":"2015-07-21T14:33:36Z","body":"What do you have for the auth + token endpoints? Do you have test credentials available I could use?"}}