{"id":22678483,"url":"https://github.com/web2solutions/dropigee","last_synced_at":"2025-10-08T04:11:00.728Z","repository":{"id":149299550,"uuid":"64416746","full_name":"web2solutions/dropigee","owner":"web2solutions","description":"Dropigee API client for Node (https://www.dropigee.com/)","archived":false,"fork":false,"pushed_at":"2016-07-28T17:55:12.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T13:44:46.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web2solutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-28T17:55:03.000Z","updated_at":"2016-07-28T17:56:46.000Z","dependencies_parsed_at":"2023-05-07T05:00:42.631Z","dependency_job_id":null,"html_url":"https://github.com/web2solutions/dropigee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web2solutions%2Fdropigee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web2solutions%2Fdropigee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web2solutions%2Fdropigee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web2solutions%2Fdropigee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web2solutions","download_url":"https://codeload.github.com/web2solutions/dropigee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246187241,"owners_count":20737462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T18:15:29.093Z","updated_at":"2025-10-08T04:10:55.679Z","avatar_url":"https://github.com/web2solutions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dropigee.js\n\nDropigee API wrapper for Node (https://www.dropigee.com/)\n\n\n##  How to Test this library?\n\nIf you want to run and test the code, you will need the following softwares:\n\n - Node.js\n - Mocha\n - Chai\n\nDownload this repository and uncompress to a given directory, lets assume: ***/Users/MyName/Desktop/dropigee.js/***\n\n\n#### Step 1\n\nNow, on terminal, navigate to the project directory:\n\n    $ cd /Users/MyName/Desktop/dropigee.js/\n\nInstall dependencies:\n\n    $ npm install node-rest-client\n\n    $ npm install request\n\n    $ npm install -g mocha\n\n    $ npm install chai\n\n\nNow start lets runs the test\n\n\t$ mocha test/t.js\n\n\n##  How to use this library?\n\nYou can follow all previously steps, or just type:\n\n    $ npm install\n\nNow, create your Node.js application.\n\nNow import the Dropigee module. Inside the code, put:\n\n\n    var Dropigee = require(\"../src/Dropigee.js\").Dropigee;\n\n\nNote:\n\n    Before calling any method from Dropigee API, please call Dropigee.authorize() first\n\n## Dropigee API\n\nThe Javascript Dropigee API is fully assync. Then, on every call, you may pass 2 callbacks: \n\n - function onSuccess( response ){}\n - function onError( response ){}\n\n### Callbacks\n\n#### onSuccess\n\nTriggered when the request was successful\n\nScope: response\n\nProperties:\n\n    response.message -\u003e message. String\n    response.data -\u003e end point response body. JSON object\n    response.statusCode -\u003e http number. Number\n    response.statusMessage -\u003e http message. String\n\n    // Other properties\n\n    response.drop -\u003e Returned drop when call show_drop(). Array\n    response.drops -\u003e Returned drops when call index_drops(). JSON object\n\n#### onError\n\nTriggered when the request returned error\n\nScope: response\n\nProperties:\n\n    response.message -\u003e error message. String\n    response.statusCode -\u003e http error number. Number\n    response.statusMessage -\u003e http error message. String\n    \n\n### Methods\n\n#### authorize()\n\nAuthorize over Dropigee using Oauth2\n\n````javascript\n            \n            var valid_credential = {\n                client_id: \"xxxx\",\n                client_secret: \"xxx\",\n                grant_type: 'client_credentials',\n                scope: 'write:drop'\n            };\n\n            Dropigee.authorize({\n                onSuccess: function(response) {\n                    console.log( response.message );\n                    console.log( response.statusMessage );\n                    console.log( response.statusCode );\n                    console.log( response.data );\n                },\n                onError: function(response) {\n                   console.log( response.message );\n                    console.log( response.statusMessage );\n                    console.log( response.statusCode );\n                },\n                credential: valid_credential\n            });\n````\n\n#### index_drops()\n\nReturn a list of Drops.\n\n##### Parameters\n    Name            Type      Description\n    -------       -------   --------------\n    - q              string    Keywords that can match either the name, mime_type or source of a Drop. (e.g. press pdf chrome)\n    - strict_q       boolean   Default: false. True, Drops matching ALL Keywords will be returned. False, Drops matching ANY Keyword will be returned.\n    - relevant       boolean   Default: false. True, Drops are sorted by their relevance to the Keywords in descending order. False, Drops are sorted by created_at in descending order.\n    - tags           string    A comma separated list of terms that identify a group of Drops. (e.g. these,are,tags)\n    - strict_tags    boolean   Default: false. True, Drops matching ALL Tags will be returned. False, Drops matching ANY Tag will be returned.\n    - private        boolean   Only Private Drops will be returned.\n    - versioned      boolean   Only Versioned Drops will be returned.\n    - per_page       int       How much results to return per request. Default is 30. Maximum is 100.\n    - page           int       From which page to start returning results. Default is 1 - first page.\n\n````javascript\n                    Dropigee.index_drops({\n                        super_cell: 'myCellName',\n                        params : {\n                            q : '',\n                            strict_q : false,\n                            relevant : false,\n                            //tags : 'these,are,tags',\n                            strict_tags : false,\n                            private : true,\n                            versioned : true,\n                            per_page : 30,\n                            page : 1\n                        },\n                        onSuccess: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                            console.log( response.data );\n                            console.log( response.drops ); // array containing drops of the currently page\n                            console.log( response.total ); // total returned drops\n                            console.log( response.per_page ); // total returned drops per page\n                            console.log( response.links ); // links provided for pagination\n                        },\n                        onError: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                        }\n                    });\n````\n\n#### show_drop()\n\nGet and return a specific Drop.\n\n````javascript\n            \n                    Dropigee.show_drops({\n                        super_cell: 'myCellName',\n                        id: 'xkhz-n0',\n                        onSuccess: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                            console.log( response.data );\n                            console.log( response.drop );\n                        },\n                        onError: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                        }\n                    });\n````\n\n#### create_drop()\n\nCreate a new Drop.\n\n````javascript\n            \n                    Dropigee.create_drop({\n                        super_cell: 'MyCellName',\n                        file: __dirname + '/db.xml', // file path\n                        tags: 'these,are,tags',\n                        private: true,\n                        versioned: true,\n                        onSuccess: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                            console.log( response.data );\n                            console.log( response.drop );\n                        },\n                        onError: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                        }\n                    });\n````\n\n#### udpate_drop()\n\nUpdate a existing Drop. \nThe versioned parameter can not be false here.\n\n````javascript\n            \n                    Dropigee.update_drop({\n                        super_cell: 'MyCellName',\n                        id: 'xkhz-n0', // drop id\n                        tags: 'these,are,tags',\n                        private: true,\n                        versioned: true,\n                        onSuccess: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                            console.log( response.data );\n                            console.log( response.drop );\n                        },\n                        onError: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                        }\n                    });\n````\n\n#### destroy_drop()\n\nDestroy a drop.\n\n````javascript\n                    Dropigee.destroy_drop({\n                        super_cell: 'MyCellName',\n                        id: 'd2m9r00', // drop id\n                        onSuccess: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                        },\n                        onError: function(response) {\n                            console.log( response.message );\n                            console.log( response.statusMessage );\n                            console.log( response.statusCode );\n                        }\n                    });\n````\n\n### Demos\n\n| --- demo/\n    | ----- list_drops.js -\u003e list drops of a Supercell\n    | ----- multiple_upload.js -\u003e upload all files from a folder to a Supercell\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb2solutions%2Fdropigee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb2solutions%2Fdropigee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb2solutions%2Fdropigee/lists"}