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

[CPP] Add warnings to all SDK example apps that would check if propper credentials have been set or it still has the defaults. #132

Merged
merged 3 commits into from
Jan 29, 2024
Merged
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
9 changes: 8 additions & 1 deletion examples/example_integration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ int main() {
ct.SetMetrics("Windows 10", "10.22", "Mac", "800x600", "Carrier", "1.0");

// start the SDK (initialize the SDK)
ct.start("YOUR_APP_KEY", "https://try.count.ly", 443, true);
string _appKey = "YOUR_APP_KEY";
string _serverUrl = "https://your.server.ly";

if(_appKey.compare("YOUR_APP_KEY") == 0 || _serverUrl.compare("https://your.server.ly") == 0) {
cerr << "Please do not use default set of app key and server url" << endl;
}

ct.start(_appKey, _serverUrl, 443, true);

ct.setAutomaticSessionUpdateInterval(5);// The value is set so low just for internal validation.
ct.setMaxRQProcessingBatchSize(2); // in most cases not needed to be set. The value is set so low just for internal validation
Expand Down
Loading