Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update config_v6 sdk keys in the sample apps #59

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/consolesample/consolesample.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

if __name__ == '__main__':
# Initialize the ConfigCatClient with an SDK Key.
client = configcatclient.get('PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A')
client = configcatclient.get('configcat-sdk-1/PKDVCLf-Hq-h-kCzMp-L7Q/AG6C1ngVb0CvM07un6JisQ')

# In the project there is a 'keySampleText' setting with the following rules:
# 1. If the User's country is Hungary, the value should be 'Dog'
Expand All @@ -38,7 +38,7 @@
my_setting_value = client.get_value('keySampleText', 'default value', User('key'))
print("'keySampleText' value from ConfigCat: " + str(my_setting_value))

# 4. As we don't pass an User object to this call, this will print the setting's default value - 'Cat'
# 4. As we don't pass a User object to this call, this will print the setting's default value - 'Cat'
my_setting_value = client.get_value('keySampleText', 'default value')
print("'keySampleText' value from ConfigCat: " + str(my_setting_value))

Expand Down
2 changes: 1 addition & 1 deletion samples/consolesample/consolesample2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
if __name__ == '__main__':
# Initialize the ConfigCatClient with an SDK Key.
client = configcatclient.get(
'PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb30i9wi17GQ')
'configcat-sdk-1/PKDVCLf-Hq-h-kCzMp-L7Q/tiOvFw5gkky9LFu1Duuvzw')

# Creating a user object to identify your user (optional).
userObject = User('Some UserID', email='[email protected]', custom={
Expand Down
Loading