CNI-Booking 1.0.9

CNI-Booking 1.0.9

Maintained by Vincent Jacquesson.



  • By
  • vincentjacquesson

CNI-Booking

Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

CNI-Booking is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CNI-Booking'

Usage

Usage

  • CNIBookingManager init with username, password, consumer key, environment

  • import CNI_Booking

  • Use those CNIBookingManager methods

public class func getBookingsWith(success: @escaping (_ results: [CNIBooking]) -> Void,
failure: @escaping (_ error: Error) -> Void)
public class func getBookingsFor(guestId: String,
success: @escaping (_ results: [CNIBooking]) -> Void,
failure: @escaping (_ error: Error) -> Void)
public class func postBookingWith(data: [String: Any],
success: @escaping (_ result: Bool) -> Void,
failure: @escaping (_ error: Error) -> Void)
public class func deleteBookingWith(data: [String: Any],
success: @escaping (_ result: Bool) -> Void,
failure: @escaping (_ error: Error) -> Void)

Author

vincentjacquesson, [email protected]

License

CNI-Booking is available under the MIT license. See the LICENSE file for more info.