Git Product home page Git Product logo

activecollab-sdk's People

Contributors

ilijastuden avatar kostajh avatar michaeljs1990 avatar svenrtbg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

activecollab-sdk's Issues

Composer autoloading does not work

You are using PSR-0 as the autoloading scheme, but your file names do not conform to PSR-0. They have to be renamed, removing the ".class" suffix.

Example not working with AC 4.2.10

The example currently features functions that no longer even exists such as API::setConnector(). If the examples will not be kept up to date i think it would make it less confusing to just not include it at all.

Creating a project via a template

The POST request structure doesn't appear to work as the documentation shows it. Can you list an example of creating a project via template via the API? The format of the date for instance isn't defined in the spec.

Thanks in advance!

Problem and solution uploading files PHP 7+

"As of PHP 5.6 @$filePath will not work in CURLOPT_POSTFIELDS without CURLOPT_SAFE_UPLOAD being set and it is completely removed in PHP 7."
https://stackoverflow.com/questions/21905942/posting-raw-image-data-as-multipart-form-data-in-curl

The solution is to rewrite line 45 in vendor/activecollab/activecollab-sdk/ActiveCollab/Connectors/Curl.php:
// $post_data['attachment_' . $counter++] = '@' . $file . ';type=application/octet-stream';
$post_data['attachment_' . $counter++] = new \CURLFile($file, mime_content_type($file));

Server aborted the SSL handshake

Hi, I'm experiencing Server aborted the SSL handshake while fetching data from my local environment, so far I've tried /projects.
I'm on PHP 5.6.30, installed SDK through composer

Remove \u00a0 from incoming data

When I pull task / comment data, I see a lot of \u00a0 in the text. It should probably be replaced with ' ' using str_replace().

(re) Move develop branch

Develop branch makes it hard to find activecollab-feather-sdk repository.
Remove branch or add reference to README

Info Needed

Hello,

I have been trying to use your API with api_version 3.1.16 but am not having any luck. Evan the example is returning a 403 on me. However using curl myself I can get the proper results back. What is the highest version of the api that you support and do you continue to support this in the future? I already have a few changes to push to you if you intend to keep supporting this.

Thanks,

Problem uploading files

The API request to upload files doesn't seem to be working, it creates the file on ActiveCollab but its size is always 0 bytes.

I am not sure if I am using the request correctly:

API::call( 'projects/1/files/files/upload', null, array(
'file[name]' => 'NAME OF THE FILE',
'file[visibility]' => 1,
'file[category_id]' => 1,
'file[body]' => 'FILE DESCRIPTION',
'file[milestone_id]' => 0,
'file[project_id]' => 1
), array(
'/ABSOLUTE_PATH/file.jpg'
));

Am I doing something wrong?

Tests

Hi @ilijastuden,

Have you considered adding tests for this library? I think this would involve either (1) a lot of code to mock responses from the activeCollab API or (2) a Vagrant box with an activeCollab install that has some content in it.

I know activeCollab is not an open source project but having a box for testing would make life better for plugin developers, and for testing against the API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.