Skip to content

Commit c6ab519

Browse files
me-hemUmesh Bhatt
authored andcommitted
fix: removed typo from updateSms
1 parent 87302c8 commit c6ab519

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

examples/messaging/messages/createSms.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ int main() {
88

99
Appwrite appwrite(projectId, apiKey);
1010

11-
std::string messageId = "6b309gbdfjhfjsk4016e14b8";
12-
std::string subject = "Hello from C++ Appwrite SDK!";
13-
std::string content =
14-
"Testing SMS message creation with topics, users, and targets.";
11+
std::string messageId = "msg001";
12+
std::string content = "Testing SMS message creation.";
1513

1614
std::vector<std::string> topics = {};
1715
std::vector<std::string> users = {};

examples/messaging/messages/updateSms.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ int main() {
88

99
Appwrite appwrite(projectId, apiKey);
1010

11-
std::string messageId = "6b309gbdfjhfjsk4016e14b8";
12-
std::string subject = "Hello from C++ Appwrite SDK!";
13-
std::string content =
14-
"Testing SMS message updation with topics, users, and targets.";
11+
std::string messageId = "msg001";
12+
std::string content = "Testing SMS message updation.";
1513

1614
std::vector<std::string> topics = {};
1715
std::vector<std::string> users = {};
@@ -24,10 +22,7 @@ int main() {
2422
future_time.time_since_epoch()) %
2523
1000;
2624

27-
std::stringstream ss;
28-
ss << std::put_time(std::gmtime(&time_t), "%Y-%m-%dT%H:%M:%S");
29-
ss << "." << std::setfill('0') << std::setw(3) << ms.count() << "+00:00";
30-
std::string scheduled_at = ss.str();
25+
std::string scheduled_at = "";
3126

3227
bool draft = true;
3328

0 commit comments

Comments
 (0)