Skip to content

Commit e14b1ce

Browse files
Updating package name to thoughtspot_rest_api and changing to version 2.0.0.
1 parent fd72c2c commit e14b1ce

38 files changed

+40
-40
lines changed

examples/audit_object_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import requests.exceptions
44
import csv
55

6-
from thoughtspot_rest_api_v1 import *
6+
from thoughtspot_rest_api import *
77

88
# You are probably better of looking at https://github.com/thoughtspot/cs_tools for more complete versions of this
99
# functionality, but this shows how to use the REST APIs directly to put together various information in ways

examples/create_or_update_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import requests.exceptions
33
import json
44

5-
from thoughtspot_rest_api_v1 import *
5+
from thoughtspot_rest_api import *
66

77
#
88
# Short script to show how to use the connection_create and connection_update commands

examples/custom_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import json
33
import requests
44

5-
from thoughtspot_rest_api_v1 import *
5+
from thoughtspot_rest_api import *
66

77
# Script to show using the /admin/ endpoints around Custom Actions
88
# Specific use-case shown is making an Action available on Context Menu of every viz on a Liveboard

examples/data_exports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import json
33

4-
from thoughtspot_rest_api_v1 import *
4+
from thoughtspot_rest_api import *
55

66

77
username = os.getenv('username') # or type in yourself

examples/delete_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import requests.exceptions
33

4-
from thoughtspot_rest_api_v1 import *
4+
from thoughtspot_rest_api import *
55

66
# This script uses the internal metadata/delete API endpoint, which will be unnecessary once the V2 API introduces
77
# a public form of delete. But it may be of use now

examples/import_tables_rest_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import requests.exceptions
33
import json
44

5-
from thoughtspot_rest_api_v1 import *
5+
from thoughtspot_rest_api import *
66

77

88
#

examples/liveboard_pdf_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import requests.exceptions
33

4-
from thoughtspot_rest_api_v1 import *
4+
from thoughtspot_rest_api import *
55

66

77
username = os.getenv('username') # or type in yourself

examples/objects_info_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import requests.exceptions
33

4-
from thoughtspot_rest_api_v1 import *
4+
from thoughtspot_rest_api import *
55

66

77
# Details about objects within ThoughtSpot all are accessed through 'metadata/' endpoints, which can be used

examples/share_objects_access_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import json
33

4-
from thoughtspot_rest_api_v1 import *
4+
from thoughtspot_rest_api import *
55

66

77
# You are probably better off looking at https://github.com/thoughtspot/cs_tools for more complete versions of this

examples/tag_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import requests.exceptions
33

4-
from thoughtspot_rest_api_v1 import *
4+
from thoughtspot_rest_api import *
55

66
# This script uses the internal metadata/delete API endpoint, which will be unnecessary once the V2 API introduces
77
# a public form of delete. But it may be of use now

0 commit comments

Comments
 (0)