This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static func createUserEventData(user:SKUser, eventType:SKEventType, sticker:Sticker?) { | |
// server endpoint | |
let endpoint = "https://app.stickerkit.io/userEvent/v1/\(user.projectID)" | |
guard let endpointUrl = URL(string: endpoint) else { | |
return nil | |
} | |
//Make JSON to send to send to server |