Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/configcat/python-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
configcat-developer committed Nov 9, 2018
2 parents b6aa991 + bca08e3 commit 3267115
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ configcatclient.stop()
```

## User object
If you want to get advantage from our percentage rollout and targeted rollout features, you should pass a ```User``` object to the ```get_value(key, default_value, user)``` calls.
If you want to get advantage from our targeting features, you should pass a ```User``` object to the ```get_value(key, default_value, user)``` calls.
We strongly recommend you to pass the ```User``` object in every call so later you can use these awesome features without rebuilding your application.

```User(...)```
Expand All @@ -64,12 +64,12 @@ We strongly recommend you to pass the ```User``` object in every call so later y

Example simple user object:
```python
User('developer@configcat.com')
User('jane@example.com')
```

Example user object with optional custom attributes:
```python
User('developer@configcat.com', 'developer@configcat.com', 'Hungary', {'UserRole': 'admin', 'Subscription': 'unlimited'})
User('jane@example.com', 'jane@example.com', 'Hungary', {'UserRole': 'admin', 'Subscription': 'unlimited'})
```


Expand Down Expand Up @@ -182,4 +182,4 @@ The ConfigCat SDK uses the default Python `logging` package for logging.

## Sample projects
* [Console sample](https://github.com/configcat/python-sdk/tree/master/samples/consolesample)
* [Django web app sample](https://github.com/configcat/python-sdk/tree/master/samples/webappsample)
* [Django web app sample](https://github.com/configcat/python-sdk/tree/master/samples/webappsample)

0 comments on commit 3267115

Please sign in to comment.