@@ -36,7 +36,7 @@ If this is the first register ever entered into the system,
36
36
from pyslicer import SlicingDice
37
37
38
38
# Configure the client
39
- client = SlicingDice(master_key = ' API_KEY' , uses_test_endpoint = False )
39
+ client = SlicingDice(master_key = ' API_KEY' )
40
40
41
41
# Inserting data
42
42
insert_data = {
@@ -90,7 +90,7 @@ Get information about current database(related to api keys informed on construct
90
90
91
91
``` python
92
92
from pyslicer import SlicingDice
93
- client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
93
+ client = SlicingDice(' MASTER_API_KEY' )
94
94
print (client.get_database())
95
95
```
96
96
@@ -116,7 +116,7 @@ Get all created columns, both active and inactive ones. This method corresponds
116
116
117
117
``` python
118
118
from pyslicer import SlicingDice
119
- client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
119
+ client = SlicingDice(' MASTER_API_KEY' )
120
120
print (client.get_columns())
121
121
```
122
122
@@ -155,7 +155,7 @@ Create a new column. This method corresponds to a [POST request at /column](http
155
155
156
156
``` python
157
157
from pyslicer import SlicingDice
158
- client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
158
+ client = SlicingDice(' MASTER_API_KEY' )
159
159
column = {
160
160
" name" : " Year" ,
161
161
" api-name" : " year" ,
@@ -182,7 +182,7 @@ Insert data to existing entities or create new entities, if necessary. This meth
182
182
183
183
``` python
184
184
from pyslicer import SlicingDice
185
- client = SlicingDice(' MASTER_OR_WRITE_API_KEY' , uses_test_endpoint = False )
185
+ client = SlicingDice(' MASTER_OR_WRITE_API_KEY' )
186
186
insert_data = {
187
187
" user1@slicingdice.com" : {
188
188
" car-model" : " Ford Ka" ,
@@ -239,7 +239,7 @@ Verify which entities exist in a table (uses `default` table if not provided) gi
239
239
240
240
``` python
241
241
from pyslicer import SlicingDice
242
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
242
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
243
243
ids = [
244
244
" user1@slicingdice.com" ,
245
245
" user2@slicingdice.com" ,
@@ -271,7 +271,7 @@ Count the number of inserted entities in the whole database. This method corresp
271
271
272
272
``` python
273
273
from pyslicer import SlicingDice
274
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
274
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
275
275
276
276
print (client.count_entity_total())
277
277
```
@@ -295,7 +295,7 @@ Count the total number of inserted entities in the given tables. This method cor
295
295
296
296
``` python
297
297
from pyslicer import SlicingDice
298
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
298
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
299
299
300
300
tables = [' default' ]
301
301
@@ -321,7 +321,7 @@ Count the number of entities matching the given query. This method corresponds t
321
321
322
322
``` python
323
323
from pyslicer import SlicingDice
324
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
324
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
325
325
query = [
326
326
{
327
327
" query-name" : " corolla-or-fit" ,
@@ -375,7 +375,7 @@ Count the number of occurrences for time-series events matching the given query.
375
375
376
376
``` python
377
377
from pyslicer import SlicingDice
378
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
378
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
379
379
query = [
380
380
{
381
381
" query-name" : " test-drives-in-ny" ,
@@ -431,7 +431,7 @@ Return the top values for entities matching the given query. This method corresp
431
431
432
432
``` python
433
433
from pyslicer import SlicingDice
434
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
434
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
435
435
query = {
436
436
" car-year" : {
437
437
" year" : 2
@@ -489,7 +489,7 @@ Return the aggregation of all columns in the given query. This method correspond
489
489
490
490
``` python
491
491
from pyslicer import SlicingDice
492
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
492
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
493
493
query = {
494
494
" query" : [
495
495
{
@@ -538,7 +538,7 @@ Get all saved queries. This method corresponds to a [GET request at /query/saved
538
538
539
539
``` python
540
540
from pyslicer import SlicingDice
541
- client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
541
+ client = SlicingDice(' MASTER_API_KEY' )
542
542
print (client.get_saved_queries())
543
543
```
544
544
@@ -589,7 +589,7 @@ Create a saved query at SlicingDice. This method corresponds to a [POST request
589
589
590
590
``` python
591
591
from pyslicer import SlicingDice
592
- client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
592
+ client = SlicingDice(' MASTER_API_KEY' )
593
593
query = {
594
594
" name" : " my-saved-query" ,
595
595
" type" : " count/entity" ,
@@ -643,7 +643,7 @@ Update an existing saved query at SlicingDice. This method corresponds to a [PUT
643
643
644
644
``` python
645
645
from pyslicer import SlicingDice
646
- client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
646
+ client = SlicingDice(' MASTER_API_KEY' )
647
647
new_query = {
648
648
" type" : " count/entity" ,
649
649
" query" : [
@@ -696,7 +696,7 @@ Executed a saved query at SlicingDice. This method corresponds to a [GET request
696
696
697
697
``` python
698
698
from pyslicer import SlicingDice
699
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
699
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
700
700
print (client.get_saved_query(' my-saved-query' ))
701
701
```
702
702
@@ -733,7 +733,7 @@ Delete a saved query at SlicingDice. This method corresponds to a [DELETE reques
733
733
734
734
``` python
735
735
from pyslicer import SlicingDice
736
- client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
736
+ client = SlicingDice(' MASTER_API_KEY' )
737
737
print (client.delete_saved_query(' my-saved-query' ))
738
738
```
739
739
@@ -768,7 +768,7 @@ Retrieve inserted values for entities matching the given query. This method corr
768
768
769
769
``` python
770
770
from pyslicer import SlicingDice
771
- client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
771
+ client = SlicingDice(' MASTER_OR_READ_API_KEY' )
772
772
query = {
773
773
" query" : [
774
774
{
@@ -855,7 +855,6 @@ print(client.score(query))
855
855
}
856
856
},
857
857
"page" : 1 ,
858
- "page" : 1 ,
859
858
"next-page" : null ,
860
859
"took" : 0.063
861
860
}
0 commit comments