Facebook
From Sludgy Coyote, 4 Years ago, written in Plain Text.
This paste is a reply to Untitled from Hot Parakeet - go back
Embed
Viewing differences between Untitled and Re: Untitled
\n======
      url:= https://sandbox.musicteachershelper.com/mobile/api/api_calendar/attendance_statuses
parameter:= ["token": "612ee56b10854b43f34cd773d2d5d85766d178a5", "api_key": "AIhI7pYxX9D9x7DyUScgNE48xA0URMPAOtiq0ZYy"]
authorization:= ["version": "2.11"]
result:= SUCCESS: {
  "fields" : [

  ],
  "success" : true,
  "message" : [
    {
      "id" : "0",
      "is_billable" : "0",
      "name" : "Ignore\/Reschedule",
      "is_system" : "1"
    },
    {
      "id" : "103112",
      "is_billable" : "1",
      "name" : "Attended",
      "is_system" : "1"
    },
    {
      "id" : "103113",
      "is_billable" : "1",
      "name" : "Cancelled",
      "is_system" : "1"
    },
    {
      "id" : "103114",
      "is_billable" : "1",
      "name" : "Missed",
      "is_system" : "1"
    },
    {
      "id" : "103772",
      "is_billable" : "0",
      "name" : "not-billable",
      "is_system" : "0"
    },
    {
      "id" : "103773",
      "is_billable" : "1",
      "name" : "New Custom",
      "is_system" : "0"
    }
  ]
}
======
      url:= https://sandbox.musicteachershelper.com/mobile/api/api_calendar/attendance_cost
parameter:= ["token": "612ee56b10854b43f34cd773d2d5d85766d178a5", "id": "41616694", "api_key": "AIhI7pYxX9D9x7DyUScgNE48xA0URMPAOtiq0ZYy"]
authorization:= ["version": "2.11"]
result:= SUCCESS: {
  "fields" : [

  ],
  "message" : {
    "cost" : "1.00"
  },
  "success" : true
}
response:= {
  "fields" : [

  ],
  "message" : {
    "cost" : "1.00"
  },
  "success" : true
}
        theDelegate.mainView.txtAttendanceStatus.text = "Attended"
var id: String?
    var userId: String?
    var userType: String?
    var date: String?
    var time: String?
    var duration: String?
    var allDayEvent: String?
    var briefDesc: String?
    var longDesc: String?
    var privateDetails: String?
    var cost: String?
    var eventType: String?
    var eventStatus: String?
    var categoryId: String?
    var categoryName: String?
    var locationId: String?
    var locationName: String?
    var repeatId: String?
    var repeatType: String?
    var endDate: String?
    var repeatDays: String?
    var frequency: String?
    var monthRepeat: String?
    var nth: String?
    var nthDay: String?
    var day: String?
    var maxParticipants: Any?
    var isLessonMakeup: String?
    var makeupCreditId: Any?
    var makeupDate: Any?
    var makeupStudentFirst: Any?
    var makeupStudentLast: Any?
    var bookingType: String?
    var bookingStatus: Any?
    var hours: NSNumber?
    var minutes: NSNumber?
    var registration: NSNumber?
    var explicitCost: String?
    var students: [Students]?
    var EType:String?
        EType <- map["type"]
https://pastebin.com/uFKY8kdu
      url:= https://sandbox.musicteachershelper.com/mobile/api/api_calendar/set_payment_attendance
parameter:= ["time": "13:00", "token": "612ee56b10854b43f34cd773d2d5d85766d178a5", "long_desc": "some description test ", "email_notes": "0", "make_up_credit": "0", "api_key": "AIhI7pYxX9D9x7DyUScgNE48xA0URMPAOtiq0ZYy", "cash_credit": "0", "private_details": "", "date": "2020-04-29", "cost": "1.00", "id": "41616694", "title": "add lesson, weekly", "do_payment": "0", "event_status": "Attended"]
result:= SUCCESS: {
  "message" : [

  ],
  "success" : true,
  "fields" : [

  ]
}
response:= {
  "message" : [

  ],
  "success" : true,
  "fields" : [

  ]
}

url:= https://sandbox.musicteachershelper.com/mobile/api/api_calendar/set_payment_attendance
parameter:= ["makeup_notes": "Test make-up", "id": "41616694", "date": "2020-04-29", "cash_credit": "0", "private_details": "", "token": "612ee56b10854b43f34cd773d2d5d85766d178a5", "time": "13:00", "cost": "1.00", "student_ids[]": "290165", "event_status": "Attended", "api_key": "AIhI7pYxX9D9x7DyUScgNE48xA0URMPAOtiq0ZYy", "email_notes": "0", "long_desc": "some description test ", "title": "add lesson, weekly", "do_payment": "0", "make_up_credit": "1"]
result:= SUCCESS: {
  "success" : true,
  "fields" : [

  ],
  "message" : [

  ]
}