{"action":"opened","number":232,"pull_request":{"url":"https://api.github.com/repos/freakboy3742/pyxero/pulls/232","id":192892999,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODkyOTk5","html_url":"https://github.com/freakboy3742/pyxero/pull/232","diff_url":"https://github.com/freakboy3742/pyxero/pull/232.diff","patch_url":"https://github.com/freakboy3742/pyxero/pull/232.patch","issue_url":"https://api.github.com/repos/freakboy3742/pyxero/issues/232","number":232,"state":"open","locked":false,"title":"Add ability configure API URL","user":{"login":"kesara","id":1027692,"node_id":"MDQ6VXNlcjEwMjc2OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1027692?v=4","gravatar_id":"","url":"https://api.github.com/users/kesara","html_url":"https://github.com/kesara","followers_url":"https://api.github.com/users/kesara/followers","following_url":"https://api.github.com/users/kesara/following{/other_user}","gists_url":"https://api.github.com/users/kesara/gists{/gist_id}","starred_url":"https://api.github.com/users/kesara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesara/subscriptions","organizations_url":"https://api.github.com/users/kesara/orgs","repos_url":"https://api.github.com/users/kesara/repos","events_url":"https://api.github.com/users/kesara/events{/privacy}","received_events_url":"https://api.github.com/users/kesara/received_events","type":"User","site_admin":false},"body":"This gives ability to change default Xero API URL by providing, `api_url=\"<custom url>\"` on creating `PublicCredentials`, `PartnerCredentials` or `PrivateCredentials`.\r\nIf no `api_url` is provided, default URL from `xero.constants.XERO_BASE_URL` will be used.\r\n\r\nExample usage:\r\n```\r\ncredentials = PrivateCredentials(\r\n    consumer_key=consumer_key,\r\n    rsa_key=rsa_private_key,\r\n    api_url=\"https://api-tls.xero.com\")\r\n```\r\n\r\nI guess this will be usual for test new [TLS requirements](https://developer.xero.com/tls1-deprecation) etc.","created_at":"2018-06-06T03:51:33Z","updated_at":"2018-06-06T03:51:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/freakboy3742/pyxero/pulls/232/commits","review_comments_url":"https://api.github.com/repos/freakboy3742/pyxero/pulls/232/comments","review_comment_url":"https://api.github.com/repos/freakboy3742/pyxero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freakboy3742/pyxero/issues/232/comments","statuses_url":"https://api.github.com/repos/freakboy3742/pyxero/statuses/9b1589403d17991abcedd94baf7efd7ebf38e19c","head":{"label":"kesara:configurable-url","ref":"configurable-url","sha":"9b1589403d17991abcedd94baf7efd7ebf38e19c","user":{"login":"kesara","id":1027692,"node_id":"MDQ6VXNlcjEwMjc2OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1027692?v=4","gravatar_id":"","url":"https://api.github.com/users/kesara","html_url":"https://github.com/kesara","followers_url":"https://api.github.com/users/kesara/followers","following_url":"https://api.github.com/users/kesara/following{/other_user}","gists_url":"https://api.github.com/users/kesara/gists{/gist_id}","starred_url":"https://api.github.com/users/kesara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesara/subscriptions","organizations_url":"https://api.github.com/users/kesara/orgs","repos_url":"https://api.github.com/users/kesara/repos","events_url":"https://api.github.com/users/kesara/events{/privacy}","received_events_url":"https://api.github.com/users/kesara/received_events","type":"User","site_admin":false},"repo":{"id":136252545,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyNTI1NDU=","name":"pyxero","full_name":"kesara/pyxero","owner":{"login":"kesara","id":1027692,"node_id":"MDQ6VXNlcjEwMjc2OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1027692?v=4","gravatar_id":"","url":"https://api.github.com/users/kesara","html_url":"https://github.com/kesara","followers_url":"https://api.github.com/users/kesara/followers","following_url":"https://api.github.com/users/kesara/following{/other_user}","gists_url":"https://api.github.com/users/kesara/gists{/gist_id}","starred_url":"https://api.github.com/users/kesara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesara/subscriptions","organizations_url":"https://api.github.com/users/kesara/orgs","repos_url":"https://api.github.com/users/kesara/repos","events_url":"https://api.github.com/users/kesara/events{/privacy}","received_events_url":"https://api.github.com/users/kesara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kesara/pyxero","description":"Python API for accessing the REST API of the Xero accounting tool.","fork":true,"url":"https://api.github.com/repos/kesara/pyxero","forks_url":"https://api.github.com/repos/kesara/pyxero/forks","keys_url":"https://api.github.com/repos/kesara/pyxero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kesara/pyxero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kesara/pyxero/teams","hooks_url":"https://api.github.com/repos/kesara/pyxero/hooks","issue_events_url":"https://api.github.com/repos/kesara/pyxero/issues/events{/number}","events_url":"https://api.github.com/repos/kesara/pyxero/events","assignees_url":"https://api.github.com/repos/kesara/pyxero/assignees{/user}","branches_url":"https://api.github.com/repos/kesara/pyxero/branches{/branch}","tags_url":"https://api.github.com/repos/kesara/pyxero/tags","blobs_url":"https://api.github.com/repos/kesara/pyxero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kesara/pyxero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kesara/pyxero/git/refs{/sha}","trees_url":"https://api.github.com/repos/kesara/pyxero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kesara/pyxero/statuses/{sha}","languages_url":"https://api.github.com/repos/kesara/pyxero/languages","stargazers_url":"https://api.github.com/repos/kesara/pyxero/stargazers","contributors_url":"https://api.github.com/repos/kesara/pyxero/contributors","subscribers_url":"https://api.github.com/repos/kesara/pyxero/subscribers","subscription_url":"https://api.github.com/repos/kesara/pyxero/subscription","commits_url":"https://api.github.com/repos/kesara/pyxero/commits{/sha}","git_commits_url":"https://api.github.com/repos/kesara/pyxero/git/commits{/sha}","comments_url":"https://api.github.com/repos/kesara/pyxero/comments{/number}","issue_comment_url":"https://api.github.com/repos/kesara/pyxero/issues/comments{/number}","contents_url":"https://api.github.com/repos/kesara/pyxero/contents/{+path}","compare_url":"https://api.github.com/repos/kesara/pyxero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kesara/pyxero/merges","archive_url":"https://api.github.com/repos/kesara/pyxero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kesara/pyxero/downloads","issues_url":"https://api.github.com/repos/kesara/pyxero/issues{/number}","pulls_url":"https://api.github.com/repos/kesara/pyxero/pulls{/number}","milestones_url":"https://api.github.com/repos/kesara/pyxero/milestones{/number}","notifications_url":"https://api.github.com/repos/kesara/pyxero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kesara/pyxero/labels{/name}","releases_url":"https://api.github.com/repos/kesara/pyxero/releases{/id}","deployments_url":"https://api.github.com/repos/kesara/pyxero/deployments","created_at":"2018-06-06T01:02:55Z","updated_at":"2018-06-06T01:02:56Z","pushed_at":"2018-06-06T02:09:00Z","git_url":"git://github.com/kesara/pyxero.git","ssh_url":"git@github.com:kesara/pyxero.git","clone_url":"https://github.com/kesara/pyxero.git","svn_url":"https://github.com/kesara/pyxero","homepage":null,"size":264,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"freakboy3742:master","ref":"master","sha":"cc93c0ad4aeeda3a378615418ba6a17758dc432b","user":{"login":"freakboy3742","id":37345,"node_id":"MDQ6VXNlcjM3MzQ1","avatar_url":"https://avatars1.githubusercontent.com/u/37345?v=4","gravatar_id":"","url":"https://api.github.com/users/freakboy3742","html_url":"https://github.com/freakboy3742","followers_url":"https://api.github.com/users/freakboy3742/followers","following_url":"https://api.github.com/users/freakboy3742/following{/other_user}","gists_url":"https://api.github.com/users/freakboy3742/gists{/gist_id}","starred_url":"https://api.github.com/users/freakboy3742/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freakboy3742/subscriptions","organizations_url":"https://api.github.com/users/freakboy3742/orgs","repos_url":"https://api.github.com/users/freakboy3742/repos","events_url":"https://api.github.com/users/freakboy3742/events{/privacy}","received_events_url":"https://api.github.com/users/freakboy3742/received_events","type":"User","site_admin":false},"repo":{"id":9045811,"node_id":"MDEwOlJlcG9zaXRvcnk5MDQ1ODEx","name":"pyxero","full_name":"freakboy3742/pyxero","owner":{"login":"freakboy3742","id":37345,"node_id":"MDQ6VXNlcjM3MzQ1","avatar_url":"https://avatars1.githubusercontent.com/u/37345?v=4","gravatar_id":"","url":"https://api.github.com/users/freakboy3742","html_url":"https://github.com/freakboy3742","followers_url":"https://api.github.com/users/freakboy3742/followers","following_url":"https://api.github.com/users/freakboy3742/following{/other_user}","gists_url":"https://api.github.com/users/freakboy3742/gists{/gist_id}","starred_url":"https://api.github.com/users/freakboy3742/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freakboy3742/subscriptions","organizations_url":"https://api.github.com/users/freakboy3742/orgs","repos_url":"https://api.github.com/users/freakboy3742/repos","events_url":"https://api.github.com/users/freakboy3742/events{/privacy}","received_events_url":"https://api.github.com/users/freakboy3742/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/freakboy3742/pyxero","description":"Python API for accessing the REST API of the Xero accounting tool.","fork":false,"url":"https://api.github.com/repos/freakboy3742/pyxero","forks_url":"https://api.github.com/repos/freakboy3742/pyxero/forks","keys_url":"https://api.github.com/repos/freakboy3742/pyxero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freakboy3742/pyxero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freakboy3742/pyxero/teams","hooks_url":"https://api.github.com/repos/freakboy3742/pyxero/hooks","issue_events_url":"https://api.github.com/repos/freakboy3742/pyxero/issues/events{/number}","events_url":"https://api.github.com/repos/freakboy3742/pyxero/events","assignees_url":"https://api.github.com/repos/freakboy3742/pyxero/assignees{/user}","branches_url":"https://api.github.com/repos/freakboy3742/pyxero/branches{/branch}","tags_url":"https://api.github.com/repos/freakboy3742/pyxero/tags","blobs_url":"https://api.github.com/repos/freakboy3742/pyxero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freakboy3742/pyxero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freakboy3742/pyxero/git/refs{/sha}","trees_url":"https://api.github.com/repos/freakboy3742/pyxero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freakboy3742/pyxero/statuses/{sha}","languages_url":"https://api.github.com/repos/freakboy3742/pyxero/languages","stargazers_url":"https://api.github.com/repos/freakboy3742/pyxero/stargazers","contributors_url":"https://api.github.com/repos/freakboy3742/pyxero/contributors","subscribers_url":"https://api.github.com/repos/freakboy3742/pyxero/subscribers","subscription_url":"https://api.github.com/repos/freakboy3742/pyxero/subscription","commits_url":"https://api.github.com/repos/freakboy3742/pyxero/commits{/sha}","git_commits_url":"https://api.github.com/repos/freakboy3742/pyxero/git/commits{/sha}","comments_url":"https://api.github.com/repos/freakboy3742/pyxero/comments{/number}","issue_comment_url":"https://api.github.com/repos/freakboy3742/pyxero/issues/comments{/number}","contents_url":"https://api.github.com/repos/freakboy3742/pyxero/contents/{+path}","compare_url":"https://api.github.com/repos/freakboy3742/pyxero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freakboy3742/pyxero/merges","archive_url":"https://api.github.com/repos/freakboy3742/pyxero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freakboy3742/pyxero/downloads","issues_url":"https://api.github.com/repos/freakboy3742/pyxero/issues{/number}","pulls_url":"https://api.github.com/repos/freakboy3742/pyxero/pulls{/number}","milestones_url":"https://api.github.com/repos/freakboy3742/pyxero/milestones{/number}","notifications_url":"https://api.github.com/repos/freakboy3742/pyxero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freakboy3742/pyxero/labels{/name}","releases_url":"https://api.github.com/repos/freakboy3742/pyxero/releases{/id}","deployments_url":"https://api.github.com/repos/freakboy3742/pyxero/deployments","created_at":"2013-03-27T03:24:19Z","updated_at":"2018-05-23T16:53:53Z","pushed_at":"2018-04-11T23:35:02Z","git_url":"git://github.com/freakboy3742/pyxero.git","ssh_url":"git@github.com:freakboy3742/pyxero.git","clone_url":"https://github.com/freakboy3742/pyxero.git","svn_url":"https://github.com/freakboy3742/pyxero","homepage":null,"size":262,"stargazers_count":171,"watchers_count":171,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":149,"mirror_url":null,"archived":false,"open_issues_count":53,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":149,"open_issues":53,"watchers":171,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freakboy3742/pyxero/pulls/232"},"html":{"href":"https://github.com/freakboy3742/pyxero/pull/232"},"issue":{"href":"https://api.github.com/repos/freakboy3742/pyxero/issues/232"},"comments":{"href":"https://api.github.com/repos/freakboy3742/pyxero/issues/232/comments"},"review_comments":{"href":"https://api.github.com/repos/freakboy3742/pyxero/pulls/232/comments"},"review_comment":{"href":"https://api.github.com/repos/freakboy3742/pyxero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freakboy3742/pyxero/pulls/232/commits"},"statuses":{"href":"https://api.github.com/repos/freakboy3742/pyxero/statuses/9b1589403d17991abcedd94baf7efd7ebf38e19c"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":75,"deletions":8,"changed_files":2}}
{"actor":{"display_login":"kesara"}}