Skip to content

Wrapper for official API and some custom API methods for worksection.com

Notifications You must be signed in to change notification settings

xopbatgh/worksection_xuni_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Worksection Uni Api

Class that implements wrapper for official Worksection.com API and also create some extra API methods using http auth (imitates client web auth).

All the methods could be easily run from the class worksectionHandler

See the example at worksection_test.php.

Currently supported and checked methods

Custom HTTP methods (details in classs worksectionHandler)

  1. bool isAuthed() — check if http auth was successful
  2. void doHttpAuth() — perform attemp to make http auth using config email and password
  3. array getLastEvents() — return list of the last events for the current user
  4. array getTaskCommentsHtml($project_id, $task_id) — return raw html task comments page
  5. array getTaskLogs($project_id, $task_id) — return array with parsed logs from task comments page with info about tags added and their date

Official API methods (details in class worksectionCommonApi)

  1. array getLastEvents() — return list of the last events for the current user
  2. bool subscribeToTask($task_page, $email_user) — subscribe user with $email_user to task
  3. array getTaskComments($project_id, $task_id) — return task comments list array
  4. array getProjects() — get list of the all visible projects
  5. array getAllTasks() — get list of the all visible tasks
  6. array getProjectTasks(project_id, $task_id, $params = []) — return the all project' tasks. Params optional: filter=active, text=1
  7. string generateApiUrl($page, $action, $extra_url_params = []) — wrapper fucntion could be used to easily generate url for any official api method

Feel free to contribute

About

Wrapper for official API and some custom API methods for worksection.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages