activecollab

Extract Data to Active Collab Tasks with Tags HTML - PHP

孤者浪人 提交于 2020-01-17 14:43:06
问题 I am trying to pull data from API for active collab, but in the body to the task exist tags HTML, causing a mess in the coding, anybody know what I can do? My code to push API: try { function listTasks() { $ch = curl_init(); $token = 'token'; curl_setopt_array($ch, [ CURLOPT_URL => 'https://collab.cadastra.com.br/api/v1/projects/projectnumber/tasks/', CURLOPT_HTTPHEADER => [ 'X-Angie-AuthApiToken: ' . $token, 'Content-Type: application/json', 'x-li-format: json' ], CURLOPT_RETURNTRANSFER =>

Active Collab file upload using PHP SDK

有些话、适合烂在心里 提交于 2019-12-24 17:09:56
问题 I just started working with the API using this documentation, and I'm having trouble uploading files. I get no response from the api call to upload-files. I've tried with multiple file types with no success. Here is my API call: $client = new \ActiveCollab\SDK\Client($token); try { $response = $client->post('upload-files',[ [ 'test-file.txt', 'text\/plain' ] ]); echo $response->getBody(); } catch(AppException $e) { print $e->getMessage() . '<br><br>'; } According to the documentation I should

fetching logged in user data in activecollab by $this->logged_user

笑着哭i 提交于 2019-12-24 06:58:47
问题 I am working with custom module of activecollab, I need to know how can I fetch logged in user data with the help of below object $this->logged_user or if anyone have another method to grab logged in user then please letme know, I just want to print logged in user info/data on my page Modified: When I use this object in model it couldn't work for me, So anyone have idea of any object of logged in user? by that I can grab logged user id or other stuff; and can work with that object in model as

Active Collab notify user when create , close or reopen task using API

不打扰是莪最后的温柔 提交于 2019-12-24 01:18:06
问题 I have created task using Active Collab API also working with close task and reopen task using API. Now if I create or close or reopen task then want to notify user but I don't know how to do this using Active Collab API. Below is my code for create task , close task and reopen task. /* create task using API */ try { $res = API::call('projects/60/tasks/add', null, array( 'task[name]' => $_POST['name'], 'task[body]' => $_POST['message'], 'task[priority]' => $priority, 'task[due_on]' => $date,

Active Collab send Email after User create

人走茶凉 提交于 2019-12-11 07:17:01
问题 I'am using the Active Collab API V5 to create User from our Service Desk - the creation of the User with the following POST works. curl -k -v -h "Content-Type:application/json" -h "X-Angie-AuthApiToken:XXXXXXX" -X POST -d '{"type": "Member","email": "XXXXXXXX@XXXXXX", "password": "XXXXX"}' https://URL/api/v1/users Is it possible to send the invite link automatically? Like the User creation on the web interface (Send invite link from People page). I found this API Reference https://developers

Active Collab v5 issue-token API call returns “invalid password” even though password is valid

岁酱吖の 提交于 2019-12-07 12:01:13
问题 I am trying to obtain an API Token via this call: curl -H "Content-Type: application/json" -X POST -d '{"username": "MY_EMAIL","password": "MY_PWD","client_name": "XXX","client_vendor": "XXX"}' https://app.activecollab.com/MY_ID/api/v1/issue-token But I am receiving this response even though the password is correct: { "type":"ApiSubscriptionError", "message":"Invalid password", "code":3 } I am following the instructions at https://labs.activecollab.com/nightly-activecollab-api/v1

Active Collab v5 issue-token API call returns “invalid password” even though password is valid

孤街醉人 提交于 2019-12-05 20:49:45
I am trying to obtain an API Token via this call: curl -H "Content-Type: application/json" -X POST -d '{"username": "MY_EMAIL","password": "MY_PWD","client_name": "XXX","client_vendor": "XXX"}' https://app.activecollab.com/MY_ID/api/v1/issue-token But I am receiving this response even though the password is correct: { "type":"ApiSubscriptionError", "message":"Invalid password", "code":3 } I am following the instructions at https://labs.activecollab.com/nightly-activecollab-api/v1/authentication.html Is anyone able to use the Active Collab v5 API OK? If so, can you help spot the trouble?

Cross-project time-record filtering using Active Collab 5 API

两盒软妹~` 提交于 2019-11-29 16:02:28
For Active Collab team watching this tag. I am working on a project that uses new Active Collab 5 API, I am having performance issue trying to run reports. Example I try to build reports on date-range, and currently to achieve that I need to first run a call to get all projects. Followed by a loop with this call: API::get('/projects/'.$id.'/time-records/filtered-by-date?' . http_build_query(['from' => $from, 'to' => $to])) However we have a large number of projects, in addition to high number of active projects we also need to filter Archived projects as well to get correct reports for billing

Get pagination results in Active Collab API

和自甴很熟 提交于 2019-11-29 15:30:56
I have just discovered you can get pagination results through the api by passing in the page parameter like so: $projects = $client->get('projects/147/time-records?page=3')->getJson(); Is there a way of knowing how many time records a project has so I know how many times I need to paginate? Alternatively, how would I go about retrieving several pages worth of data - i'm struggling with the code! I have created an issue on Github - will await a response. For now, I do the following: // Get all the projects // Set the page number $page = 1; // Create an empty array $project_records = array(); //

Cross-project time-record filtering using Active Collab 5 API

两盒软妹~` 提交于 2019-11-28 09:25:08
问题 For Active Collab team watching this tag. I am working on a project that uses new Active Collab 5 API, I am having performance issue trying to run reports. Example I try to build reports on date-range, and currently to achieve that I need to first run a call to get all projects. Followed by a loop with this call: API::get('/projects/'.$id.'/time-records/filtered-by-date?' . http_build_query(['from' => $from, 'to' => $to])) However we have a large number of projects, in addition to high number