Skip to content

Commit

Permalink
update config_v6 sdk keys in the sample apps (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-cat authored Jan 11, 2024
1 parent f348cac commit a21d232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit a21d232

Please sign in to comment.