Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
/ CallkeeperAPI Public archive

Simple Python wrapper for stats methods in Callkeeper API

Notifications You must be signed in to change notification settings

hexeh/CallkeeperAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

CallkeeperAPI

Simple Python wrapper for stats methods in Callkeeper API

Example

# -*- coding: utf-8 -*-

import pprint
import json
import datetime
from api import CallKeeper

if __name__ == '__main__':
	
	config = {
		'ck': {'key': 'my_own_api_key'}
	}
	pp = pprint.PrettyPrinter(indent = 4)
	fetch_date = datetime.date.today() - datetime.timedelta(1)
	ck = CallKeeperApi(config['ck']['key'])
	
	# Current User Info
	pp.pprint(ck.user)
	
	# Info for specific call
	pp.pprint(ck.getCallInfo(12345))
	
	# Calls for specific period by daterange
	pp.pprint(ck.captureStats('2018-01-01'))
	
	# Calls for specific period by daterange
	pp.pprint(ck.captureStats('2018-01-01'), statuses = [200,0])

About

Simple Python wrapper for stats methods in Callkeeper API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages