Skip to content

Commit

Permalink
Merge pull request #17 from ingresse/release/0.2.2
Browse files Browse the repository at this point in the history
Release/0.2.2
  • Loading branch information
gitrubs committed Oct 3, 2017
2 parents 4207ecd + 2245d59 commit b10a06c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion IngresseSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "IngresseSDK"
s.version = "0.2.1"
s.version = "0.2.2"
s.summary = "Ingresse's SDK."

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion IngresseSDK/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.2.1</string>
<string>0.2.2</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
6 changes: 4 additions & 2 deletions IngresseSDK/Services/EntranceService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,15 @@ public class EntranceService: NSObject {
/// - eventId: id of the event
/// - userToken: token of logged user
/// - delegate: delegate to receive callbacks
public func checkinTickets(_ ticketCodes: [String], ticketStatus: [String], ticketTimestamps: [String], eventId: String, userToken: String, delegate: CheckinSyncDelegate) {
public func checkinTickets(_ ticketCodes: [String], ticketStatus: [String], ticketTimestamps: [String], eventId: String, sessionId: String, userToken: String, delegate: CheckinSyncDelegate) {

let url = URLBuilder()
.setKeys(publicKey: client.publicKey, privateKey: client.privateKey)
.setHost(client.host)
.setPath("event/\(eventId)/guestlist")
.addParameter(key: "method", value: "updatestatus")
.addParameter(key: "usertoken", value: userToken)
.addParameter(key: "sessionId", value: sessionId)
.build()

var postParams = [String:String]()
Expand Down Expand Up @@ -143,14 +144,15 @@ public class EntranceService: NSObject {
/// - userToken: token required
/// - onSuccess: success callback
/// - onError: fail callback
public func getValidationInfoOfTicket(code: String, eventId: String, userToken: String, onSuccess: @escaping (_ ticket: CheckinTicket)->(), onError: @escaping (_ error: APIError)->()) {
public func getValidationInfoOfTicket(code: String, eventId: String, sessionId: String, userToken: String, onSuccess: @escaping (_ ticket: CheckinTicket)->(), onError: @escaping (_ error: APIError)->()) {

let url = URLBuilder()
.setKeys(publicKey: client.publicKey, privateKey: client.privateKey)
.setHost(client.host)
.setPath("event/\(eventId)/guestlist")
.addParameter(key: "method", value: "updatestatus")
.addParameter(key: "usertoken", value: userToken)
.addParameter(key: "sessionId", value: sessionId)
.build()

var postParams = [String:String]()
Expand Down

0 comments on commit b10a06c

Please sign in to comment.