Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit d613176

Browse files
committed
Move endpoint from wayscript.com to wayscript.io
1 parent 1325915 commit d613176

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.1.1] - 2020-03-11
5+
### Changed
6+
- Move endpoint from wayscript.com to wayscript.io
7+
48
## [0.1.0] - 2019-11-13
59
### Changed
610
- **BREAKING**: Convert SDK to adhere to the [WayScript HTTP Trigger](https://docs.wayscript.com/library/triggers/http-trigger) specification.
@@ -19,7 +23,8 @@ All notable changes to this project will be documented in this file.
1923
## [0.0.1] - 2019-04-17
2024
### Released SDK
2125

22-
[Unreleased]: https://github.com/wayscript/wayscript-python/compare/0.1.0...HEAD
26+
[Unreleased]: https://github.com/wayscript/wayscript-python/compare/0.1.1...HEAD
27+
[0.1.1]: https://github.com/wayscript/wayscript-python/compare/0.1.0...0.1.1
2328
[0.1.0]: https://github.com/wayscript/wayscript-python/compare/0.0.3...0.1.0
2429
[0.0.3]: https://github.com/wayscript/wayscript-python/compare/v0.0.2...0.0.3
2530
[0.0.2]: https://github.com/wayscript/wayscript-python/compare/0.0.1...v0.0.2

tests/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TestWayScript( TestCase ):
1515
PROGRAM_ID = 1234
1616
QUERY_PARAMS = { 'var1': 'one', 'var2': 'two', 'var3': 'three' }
1717
BODY_PARAMS = { 'var4': 'four', 'var5': 'five', 'var6': 'six' }
18-
API_URL = f'https://{ PROGRAM_ID }.wayscript.com/'
18+
API_URL = f'https://{ PROGRAM_ID }.wayscript.io/'
1919
ENDPOINT = 'my_endpoint'
2020

2121
def test_api_key_arg( self ):

wayscript/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def run( self, program_id: int, endpoint: str = '', params: dict = None, data: d
5656
auth_header = self._get_auth_header()
5757
if auth_header: headers[ 'Authorization' ] = auth_header
5858

59-
url = f'https://{ program_id }.wayscript.com/' + parse.quote( endpoint or '' )
59+
url = f'https://{ program_id }.wayscript.io/' + parse.quote( endpoint or '' )
6060

6161
return requests.post( url, params = params, data = data, headers = headers )
6262

0 commit comments

Comments
 (0)