Skip to content

Commit bc2def1

Browse files
committed
Correct README calls
[skip ci]
1 parent c76db6c commit bc2def1

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

README.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If this is the first register ever entered into the system,
3636
from pyslicer import SlicingDice
3737

3838
# Configure the client
39-
client = SlicingDice(master_key='API_KEY', uses_test_endpoint=False)
39+
client = SlicingDice(master_key='API_KEY')
4040

4141
# Inserting data
4242
insert_data = {
@@ -90,7 +90,7 @@ Get information about current database(related to api keys informed on construct
9090

9191
```python
9292
from pyslicer import SlicingDice
93-
client = SlicingDice('MASTER_API_KEY', uses_test_endpoint=False)
93+
client = SlicingDice('MASTER_API_KEY')
9494
print(client.get_database())
9595
```
9696

@@ -116,7 +116,7 @@ Get all created columns, both active and inactive ones. This method corresponds
116116

117117
```python
118118
from pyslicer import SlicingDice
119-
client = SlicingDice('MASTER_API_KEY', uses_test_endpoint=False)
119+
client = SlicingDice('MASTER_API_KEY')
120120
print(client.get_columns())
121121
```
122122

@@ -155,7 +155,7 @@ Create a new column. This method corresponds to a [POST request at /column](http
155155

156156
```python
157157
from pyslicer import SlicingDice
158-
client = SlicingDice('MASTER_API_KEY', uses_test_endpoint=False)
158+
client = SlicingDice('MASTER_API_KEY')
159159
column = {
160160
"name": "Year",
161161
"api-name": "year",
@@ -182,7 +182,7 @@ Insert data to existing entities or create new entities, if necessary. This meth
182182

183183
```python
184184
from pyslicer import SlicingDice
185-
client = SlicingDice('MASTER_OR_WRITE_API_KEY', uses_test_endpoint=False)
185+
client = SlicingDice('MASTER_OR_WRITE_API_KEY')
186186
insert_data = {
187187
"user1@slicingdice.com": {
188188
"car-model": "Ford Ka",
@@ -239,7 +239,7 @@ Verify which entities exist in a table (uses `default` table if not provided) gi
239239

240240
```python
241241
from pyslicer import SlicingDice
242-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
242+
client = SlicingDice('MASTER_OR_READ_API_KEY')
243243
ids = [
244244
"user1@slicingdice.com",
245245
"user2@slicingdice.com",
@@ -271,7 +271,7 @@ Count the number of inserted entities in the whole database. This method corresp
271271

272272
```python
273273
from pyslicer import SlicingDice
274-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
274+
client = SlicingDice('MASTER_OR_READ_API_KEY')
275275

276276
print(client.count_entity_total())
277277
```
@@ -295,7 +295,7 @@ Count the total number of inserted entities in the given tables. This method cor
295295

296296
```python
297297
from pyslicer import SlicingDice
298-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
298+
client = SlicingDice('MASTER_OR_READ_API_KEY')
299299

300300
tables = ['default']
301301

@@ -321,7 +321,7 @@ Count the number of entities matching the given query. This method corresponds t
321321

322322
```python
323323
from pyslicer import SlicingDice
324-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
324+
client = SlicingDice('MASTER_OR_READ_API_KEY')
325325
query = [
326326
{
327327
"query-name": "corolla-or-fit",
@@ -375,7 +375,7 @@ Count the number of occurrences for time-series events matching the given query.
375375

376376
```python
377377
from pyslicer import SlicingDice
378-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
378+
client = SlicingDice('MASTER_OR_READ_API_KEY')
379379
query = [
380380
{
381381
"query-name": "test-drives-in-ny",
@@ -431,7 +431,7 @@ Return the top values for entities matching the given query. This method corresp
431431

432432
```python
433433
from pyslicer import SlicingDice
434-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
434+
client = SlicingDice('MASTER_OR_READ_API_KEY')
435435
query = {
436436
"car-year": {
437437
"year": 2
@@ -489,7 +489,7 @@ Return the aggregation of all columns in the given query. This method correspond
489489

490490
```python
491491
from pyslicer import SlicingDice
492-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
492+
client = SlicingDice('MASTER_OR_READ_API_KEY')
493493
query = {
494494
"query": [
495495
{
@@ -538,7 +538,7 @@ Get all saved queries. This method corresponds to a [GET request at /query/saved
538538

539539
```python
540540
from pyslicer import SlicingDice
541-
client = SlicingDice('MASTER_API_KEY', uses_test_endpoint=False)
541+
client = SlicingDice('MASTER_API_KEY')
542542
print(client.get_saved_queries())
543543
```
544544

@@ -589,7 +589,7 @@ Create a saved query at SlicingDice. This method corresponds to a [POST request
589589

590590
```python
591591
from pyslicer import SlicingDice
592-
client = SlicingDice('MASTER_API_KEY', uses_test_endpoint=False)
592+
client = SlicingDice('MASTER_API_KEY')
593593
query = {
594594
"name": "my-saved-query",
595595
"type": "count/entity",
@@ -643,7 +643,7 @@ Update an existing saved query at SlicingDice. This method corresponds to a [PUT
643643

644644
```python
645645
from pyslicer import SlicingDice
646-
client = SlicingDice('MASTER_API_KEY', uses_test_endpoint=False)
646+
client = SlicingDice('MASTER_API_KEY')
647647
new_query = {
648648
"type": "count/entity",
649649
"query": [
@@ -696,7 +696,7 @@ Executed a saved query at SlicingDice. This method corresponds to a [GET request
696696

697697
```python
698698
from pyslicer import SlicingDice
699-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
699+
client = SlicingDice('MASTER_OR_READ_API_KEY')
700700
print(client.get_saved_query('my-saved-query'))
701701
```
702702

@@ -733,7 +733,7 @@ Delete a saved query at SlicingDice. This method corresponds to a [DELETE reques
733733

734734
```python
735735
from pyslicer import SlicingDice
736-
client = SlicingDice('MASTER_API_KEY', uses_test_endpoint=False)
736+
client = SlicingDice('MASTER_API_KEY')
737737
print(client.delete_saved_query('my-saved-query'))
738738
```
739739

@@ -768,7 +768,7 @@ Retrieve inserted values for entities matching the given query. This method corr
768768

769769
```python
770770
from pyslicer import SlicingDice
771-
client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
771+
client = SlicingDice('MASTER_OR_READ_API_KEY')
772772
query = {
773773
"query": [
774774
{
@@ -855,7 +855,6 @@ print(client.score(query))
855855
}
856856
},
857857
"page": 1,
858-
"page": 1,
859858
"next-page": null,
860859
"took": 0.063
861860
}

0 commit comments

Comments
 (0)