{"action":"closed","issue":{"url":"https://api.github.com/repos/ShareX/ShareX/issues/2976","repository_url":"https://api.github.com/repos/ShareX/ShareX","labels_url":"https://api.github.com/repos/ShareX/ShareX/issues/2976/labels{/name}","comments_url":"https://api.github.com/repos/ShareX/ShareX/issues/2976/comments","events_url":"https://api.github.com/repos/ShareX/ShareX/issues/2976/events","html_url":"https://github.com/ShareX/ShareX/issues/2976","id":278795966,"node_id":"MDU6SXNzdWUyNzg3OTU5NjY=","number":2976,"title":"Need help with Custom Uploaders (pCloud)","user":{"login":"welpdx","id":30542416,"node_id":"MDQ6VXNlcjMwNTQyNDE2","avatar_url":"https://avatars3.githubusercontent.com/u/30542416?v=4","gravatar_id":"","url":"https://api.github.com/users/welpdx","html_url":"https://github.com/welpdx","followers_url":"https://api.github.com/users/welpdx/followers","following_url":"https://api.github.com/users/welpdx/following{/other_user}","gists_url":"https://api.github.com/users/welpdx/gists{/gist_id}","starred_url":"https://api.github.com/users/welpdx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welpdx/subscriptions","organizations_url":"https://api.github.com/users/welpdx/orgs","repos_url":"https://api.github.com/users/welpdx/repos","events_url":"https://api.github.com/users/welpdx/events{/privacy}","received_events_url":"https://api.github.com/users/welpdx/received_events","type":"User","site_admin":false},"labels":[{"id":901854108,"node_id":"MDU6TGFiZWw5MDE4NTQxMDg=","url":"https://api.github.com/repos/ShareX/ShareX/labels/Stale","name":"Stale","color":"166584","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-03T16:32:50Z","updated_at":"2018-06-08T17:53:53Z","closed_at":"2018-06-08T17:53:53Z","author_association":"NONE","body":"Hey Jaex,\r\n\r\nI love your project and have been trying to add my own Cloud Service to the uploader for ease of access.\r\nUsing the Custom Uploader Editor under Destination Settings, I was unable to reproduce an url but was able to upload the file. \r\n\r\nThe issue is because the pCloud Api does not have a method to \"Upload\" and \"Generate a Download Link\" at the same time. (Ie [uploadfile](https://docs.pcloud.com/methods/file/uploadfile.html) and [getfilepublink](https://docs.pcloud.com/methods/public_links/getfilepublink.html))\r\n\r\n**Since, I'm not that good of a coder, I was wondering if you can have a look at it.** This \"uploader\" for pCloud seems to be very similar to mediafire where you only need the login info and path. \r\nI've tried to take a look at the UploadersConfig.json but I got a bit confused so I didn't mess with that lol.\r\n\r\nHere's what I did: [Picture of Result](https://vgy.me/3BR02D.jpg)\r\n\r\n*I did not add \"$json:url$\" or edit the Response Text condition to see the outputs.\r\n\r\n[Output code: ](https://pastebin.com/k0XNif72)\r\n\r\n`{\r\n    \"result\": 0,\r\n    \"metadata\": [\r\n        {\r\n            \"name\": \"Test.png\",\r\n            \"created\": \"Sun, 03 Dec 2017 16:16:50 +0000\",\r\n            \"thumb\": true,\r\n            \"modified\": \"Sun, 03 Dec 2017 16:16:50 +0000\",\r\n            \"isfolder\": false,\r\n            \"height\": 256,\r\n            \"fileid\": 4572377023,\r\n            \"width\": 256,\r\n            \"hash\": 7109101225546285670,\r\n            \"path\": \"\\/New\\/Test.png\",\r\n            \"category\": 1,\r\n            \"id\": \"f4572377023\",\r\n            \"isshared\": false,\r\n            \"ismine\": true,\r\n            \"size\": 27391,\r\n            \"parentfolderid\": 1247261759,\r\n            \"contenttype\": \"image\\/png\",\r\n            \"icon\": \"image\"\r\n        }\r\n    ],\r\n    \"checksums\": [\r\n        {\r\n            \"sha1\": \"1b8b9f68f561c21c6cec15191738c1a3692910df\",\r\n            \"md5\": \"0c0e15c159f2080678a61c4dd1f355a6\"\r\n        }\r\n    ],\r\n    \"fileids\": [\r\n        4572377023\r\n    ]\r\n}`\r\n\r\n[Json Code:](https://pastebin.com/Dde9rKpa)\r\n\r\n`{\r\n      \"Name\": \"pCloud3\",\r\n      \"DestinationType\": \"FileUploader\",\r\n      \"RequestType\": \"POST\",\r\n      \"RequestURL\": \"https://api.pcloud.com/uploadfile\",\r\n      \"FileFormName\": \"filename\",\r\n      \"Arguments\": {\r\n        \"username\": \"testingcode@yandex.com\",\r\n        \"password\": \"test123\",\r\n        \"path\": \"/New\"\r\n      },\r\n      \"ResponseType\": \"Text\",\r\n      \"URL\": \"\",\r\n      \"ThumbnailURL\": \"\",\r\n      \"DeletionURL\": \"\"\r\n    },`\r\n\r\n\r\nThanks,\r\n\r\nYou may also use the username and password in the Json. (The acc was created for this purpose) \r\n"}}
{"actor":{"display_login":"stale"}}