Skip to content
This repository was archived by the owner on Dec 31, 2021. It is now read-only.

Simple utilities for accessing the totango data API through the command line

Notifications You must be signed in to change notification settings

totango/totango-commandline-utlis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Totango Command Line Utilities
==============================

The Totango command line utilities are a set of scripts designed for simple access to Totango Data from the command-line. You can use it to export data from
your Totango account without learning the intricacies of the Totango API. Simply run the relevant script and grab the results from stdout.

To learn more about Totango, visit www.totango.com ;
For more about the Totango Data API: dev.totango.com 

Right now the toolchest is pretty minimal, so feel free to fork and add more tools to the mix.

General
========
General command-line options:
- apikey <API-TOKEN> see: https://app.totango.com/app.html#!/updateProfile?tab=Profile on how to find your token

output goes to stdout, with errors or progress printouts to stderr, so it's usually safe to redirect sdtout to a .csv file.


accountsRecentActivity.php
---------------------------
Print the number of times each account in an active-list performed a set of actions in the last 7, 30 and 90 days
*Example*: 
> php accountsRecentActivity.php -apikey YOUR-API-KEY -activelistID 1004 -activity Login -activity "Add Task" 

account-id, account-name, first-activity, last-activity, Login_7d, Login_30d, Login_90d, Add Task_7d, Add Task_30d, Add Task_90d
1235, account-A, 01/01/12 00:10, 01/15/12 3:44, 0, 5, 10, 0, 22, 99
4522, account-B, 01/01/12 00:10, 01/15/12 3:44, 10,0,0, 


accountsEngagement.php
----------------------
Print the engagement score of each account in an active-list 
*Example*: 
> php totangoActivities.php -apikey YOUR-API-KEY -activelistID 1004  

account-id, account-name, engagement
1235, account-A, 99
4522, account-B, 0

About

Simple utilities for accessing the totango data API through the command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages