pcloud / pcloud-sdk-swift Goto Github PK
View Code? Open in Web Editor NEWThe official pCloud Swift SDK for iOS and macOS for integration with the pCloud API.
License: MIT License
The official pCloud Swift SDK for iOS and macOS for integration with the pCloud API.
License: MIT License
I use the sdk. But when I try to authorize. It show a red button with "The 'redirect_uri' is not authorized".
I only use it in ios. I don't need redirect_uri. When I add a redirect_uri, It also show "The 'redirect_uri' is not authorized".
I only replace appkey with mine appkey in the demo.
How to deal with it ?
Hello,
We are using your SDK to connect to pCloud from CloudMounter app, and have the following behavior, when trying to connect under macOS 10.11:
Any suggestion will be appreciated.
Resources:
example.mp3.zip
Hello,
We are trying to use your SDK to include pCloud support into our CloudMounter app. Unfortunately, if Two-factor authentication is enabled for the account, we do not receive any authentication form for confirmation code. Could you please let me know how we can proceed with 2FA accounts using this SDK?
I understand that there are separate methods for renaming and moving a file/folder. However, the pCloud API is actually able to do both operations in one request. And I need that for my implementation.
I'd be glad to open another PR. However, I wanted to ask first if and how you would solve this. I could add a new PCloudAPIMethod
like RenameAndMoveFile/Folder
. Or maybe we could remove MoveFile/Folder
and make sure that RenameFile/Folder
can handle all three cases (just rename, just move, do both) or vice versa?
Hello, I am observing multiple crashes for my app in crashlytics. Do you have an idea how it can be fixed and why it happens? Unfortunately I am not able to reproduce the crash.
Crashed: com.apple.root.default-qos
0 libswiftCore.dylib 0x19be7aaa8 _assertionFailure(_:_:file:line:flags:) + 488
1 libswiftFoundation.dylib 0x19bdea658 specialized static Int._forceBridgeFromObjectiveC(_:result:) + 488
2 libswiftFoundation.dylib 0x19bde8e40 protocol witness for static _ObjectiveCBridgeable._forceBridgeFromObjectiveC(_:result:) in conformance Int + 40
3 libswiftCore.dylib 0x19c1412f8 _dynamicCastClassToValueViaObjCBridgeable(swift::OpaqueValue*, swift::OpaqueValue*, swift::TargetMetadata<swift::InProcess> const*, swift::TargetMetadata<swift::InProcess> const*, (anonymous namespace)::_ObjectiveCBridgeableWitnessTable const*, swift::DynamicCastFlags) + 440
4 libswiftCore.dylib 0x19c140154 swift_dynamicCastImpl(swift::OpaqueValue*, swift::OpaqueValue*, swift::TargetMetadata<swift::InProcess> const*, swift::TargetMetadata<swift::InProcess> const*, swift::DynamicCastFlags) + 2340
5 cb 0x104ccfde8 specialized Dictionary<>.value<A>(_:) + 3168788
6 cb 0x104cbfdb8 closure #1 in FileMetadataParser.parse(_:) + 35 (Parser.swift:35)
7 cb 0x104cc0670 specialized FileMetadataParser.parse(_:) + 650 (Content.swift:650)
8 cb 0x104cc0c78 specialized ContentListParser.parse(_:) + 3106980 (<compiler-generated>:3106980)
9 cb 0x104cc01f8 closure #2 in FolderMetadataParser.parse(_:) + 3104292 (<compiler-generated>:3104292)
10 cb 0x104cc0a10 specialized FolderMetadataParser.parse(_:) + 712 (Content.swift:712)
11 cb 0x104cd7418 specialized closure #1 in PCloudAPI.ListFolder.createResponseParser() + 3199044 (PCloudAPI.swift:3199044)
12 cb 0x104cd2e34 specialized thunk for @escaping @callee_guaranteed (@guaranteed [String : Any]) -> (@owned Result<Folder.Metadata, PCloudAPI.Error<PCloudAPI.ListFolder.Error>>, @error @owned Error) + 3181152
13 cb 0x104cd2180 specialized thunk for @escaping @callee_guaranteed (@guaranteed [String : Any]) -> (@owned Result<Folder.Metadata, PCloudAPI.Error<PCloudAPI.ListFolder.Error>>, @error @owned Error) + 3177900
14 cb 0x104ce31c0 specialized closure #1 in closure #1 in CallTask.init(operation:responseParser:) + 48 (CallTask.swift:48)
15 cb 0x104ce0378 specialized closure #1 in CallTask.init(operation:responseParser:) + 38 (CallTask.swift:38)
16 cb 0x104cecfd0 thunk for @escaping @callee_guaranteed (@guaranteed Result<[String : Any], NetworkOperationError>) -> () + 3288060 (<compiler-generated>:3288060)
17 cb 0x104ceda58 specialized thunk for @escaping @callee_guaranteed (@in_guaranteed A) -> () + 3290756 (<compiler-generated>:3290756)
18 cb 0x104cee120 partial apply for specialized thunk for @escaping @callee_guaranteed (@in_guaranteed A) -> (@out ()) + 3292492 (<compiler-generated>:3292492)
19 cb 0x104cee198 partial apply for specialized closure #2 in URLSessionBasedNetworkOperation.complete(response:) + 3292612 (<compiler-generated>:3292612)
20 cb 0x1047e1c5c thunk for @escaping @callee_guaranteed () -> () + 4367522908 (<compiler-generated>:4367522908)
21 libdispatch.dylib 0x19808d298 _dispatch_call_block_and_release + 24
22 libdispatch.dylib 0x19808e280 _dispatch_client_callout + 16
23 libdispatch.dylib 0x198033048 _dispatch_queue_override_invoke + 692
24 libdispatch.dylib 0x19803ff3c _dispatch_root_queue_drain + 376
25 libdispatch.dylib 0x198040704 _dispatch_worker_thread2 + 124
26 libsystem_pthread.dylib 0x1e0c79568 _pthread_wqthread + 212
27 libsystem_pthread.dylib 0x1e0c7c874 start_wqthread + 8
Hello,
We are trying to use your SDK to include pCloud support into our CloudMounter app. Upon file upload using the following method of PCloudClient class
func upload(fromFileAt path: URL, toFolder folderId: UInt64, asFileNamed name: String, withModificationDate date: Date? = nil) -> UploadTask<PCloudAPI.UploadFile>
if the initial file name contains "&" character, all subsequent symbols are cut off in the name of uploaded file.
Kindly take a look.
As far as I can see, the API method stat
is missing.
Any plans to add it?
Are there any plans to support background URLSession
?
We would like to use a background URLSession
for larger uploads/downloads in our project.
In my opinion, Swift Package Manager is becoming the dominant dependency management solution for Swift projects. Are there any plans to support SPM for this library?
First of all, thank you for the quick release of 3.1.0 and even including the createfolderifnotexists
API method that I would like to use as well. ๐
However, I'm missing the created
property (not the one inside metadata
), which tells if the folder has been created or not (boolean). For my use case, I'd like to know if the folder already existed after calling this method.
I have been integrating the pCloud Swift SDK successfully.
I'm testing for edge cases, when the user revokes access to the app, in his pCloud console.
My problem: I still get a PCloud.sharedClient instance on setUp, and I only receive an error when the user tries to upload a file (or list a folder).
How can I detect this before? Such that the user is being asked to authenticate before performing the upload/list folder/or any task.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.