Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Mar 25, 2024
2 parents b7f2b18 + b984446 commit 54b7417
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/customer-satisfaction-survey-analysis/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

import ballerina/io;
import ballerinax/zendesk;

Expand All @@ -36,7 +37,7 @@ public function main() returns error? {
io:println("Processing Ticket: ", ticketId);

// Send satisfaction survey for each solved ticket
if (ticket.status == "solved") {
if ticket.status == "solved" {
zendesk:SatisfactionRatingResponse _ = check zendesk->/api/v2/tickets/[ticketId]/satisfaction_rating.post;
}
}
Expand Down

0 comments on commit 54b7417

Please sign in to comment.