Sha256: 600c4e9ac00124ccaddfd11ad5efc14e2841929a012c8ea37e7e375a7f796261

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

require 'httparty'

DATE_FORMAT = 'dd/MM/yyyy HH:mm:ss'
AUTH_TOKEN = '3322c84ac90c17b50ad5268795854197'

attendance_endpoint = 'https://people.zoho.com/people/api/attendance'

parameters = {
  'authtoken' => AUTH_TOKEN,
  'dateFormat' => DATE_FORMAT,
  'checkIn' => '26/06/2017 10:00:00',
  'checkOut' => '26/06/2017 18:00:00',
  'emailId' => 'krzysztof.kucharski@codete.com'
}

response = HTTParty.post(attendance_endpoint, query: parameters)

puts response.body, response.code, response.message, response.headers.inspect

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attend-0.1.0 entrypoiny.rb