diff options
author | Horie Issei <is2ei.horie@gmail.com> | 2018-09-25 06:42:06 +0900 |
---|---|---|
committer | Alicia Cozine <879121+acozine@users.noreply.github.com> | 2018-09-24 16:42:06 -0500 |
commit | d8d4be40b0a8048ce2d73eee6f0d7f0455df8528 (patch) | |
tree | c89797aa3604d048b1e9a85e808ad9d1499d1f14 /lib | |
parent | 86e8d21667fa7a876f4fc079127bb4074e27148e (diff) | |
download | ansible-d8d4be40b0a8048ce2d73eee6f0d7f0455df8528.tar.gz |
Update typetalk.py to use com domain (#46045)
Typetalk now uses "com" domain.
FYI: https://www.typetalk.com/blog/typetalk-gets-new-top-level-domain-typetalk-com/
+label: docsite_pr
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/modules/notification/typetalk.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/modules/notification/typetalk.py b/lib/ansible/modules/notification/typetalk.py index 8ad95324fa..88593045a0 100644 --- a/lib/ansible/modules/notification/typetalk.py +++ b/lib/ansible/modules/notification/typetalk.py @@ -19,7 +19,7 @@ module: typetalk version_added: "1.6" short_description: Send a message to typetalk description: - - Send a message to typetalk using typetalk API ( http://developers.typetalk.in/ ) + - Send a message to typetalk using typetalk API options: client_id: description: @@ -78,7 +78,7 @@ def get_access_token(module, client_id, client_secret): 'grant_type': 'client_credentials', 'scope': 'topic.post' } - res = do_request(module, 'https://typetalk.in/oauth2/access_token', params) + res = do_request(module, 'https://typetalk.com/oauth2/access_token', params) return json.load(res)['access_token'] @@ -88,7 +88,7 @@ def send_message(module, client_id, client_secret, topic, msg): """ try: access_token = get_access_token(module, client_id, client_secret) - url = 'https://typetalk.in/api/v1/topics/%d' % topic + url = 'https://typetalk.com/api/v1/topics/%d' % topic headers = { 'Authorization': 'Bearer %s' % access_token, } |