rambalac / amazonclouddriveapi Goto Github PK
View Code? Open in Web Editor NEWAmazon Cloud Drive Api for .NET
License: MIT License
Amazon Cloud Drive Api for .NET
License: MIT License
Not sure if something changed recently, but according to ACD API authentication is via Amazon Login. Unfortunately, the ACD scope values do not appear to work with Amazon Login.
Of course, I could be missing something. I have an ACD account, registered my App with https://login.amazon.com, and am using my client ID and secret in your latest code branch.
Help is appreciated.
I'm noticing that Files uploading is stuck at 35.
and in %TEMP%\ACDDokanNetCache\Uploads, I see the file pairs still there.
How do I resume the uploads?
I see upload new api calls. How it will handle if the files are already there in drive. Is it handled ?
I see this:
public async Task<R> SendFile<R>(HttpMethod method, string url, FileUpload file)
{
// ... [skipped] ...
await pre.CopyToAsync(output).ConfigureAwait(false);
await input.CopyToAsync(output).ConfigureAwait(false);
await post.CopyToAsync(output).ConfigureAwait(false);
// ... [skipped] ...
}
But this does not allow to cancel the upload action. CopyToAsync can accept a CancellationToken, but it's not passed. Can we have it fixed, please?
Also, is there a way to monitor the progress?
It seems to clog on files that make it into the upload cache but never get uploaded.
Here: Azi.Tools.HttpClient::GetToStreamAsync() there is a problem. It is not possible to pass a progress function, since it immediately leads to an exception, because position field is not supported. Also, there is an apparent typo (red instead of read).
Currently, there is no way to break the download process. Maybe instead of nextProgress should be checked for being set to -1. Somehow this way:
while ((read = await input.ReadAsync(buff, 0, buff.Length).ConfigureAwait(false)) > 0)
{
await stream.WriteAsync(buff, 0, read).ConfigureAwait(false);
totalRead += read;
if (progress != null && totalRead >= nextProgress)
{
nextProgress = progress.Invoke(totalRead);
if (nextProgress == -1) // passing -1 from the progress function, will allow us breaking the download
{
break;
}
}
}
Would it be possible to have it write directly to Amazon without caching to a local directory? I would rather see that 50Mb/s slow copy operation than for it to speed past at 100MB/s and have eventual consistency. Plus for me it will fill up the local disk and then I get Access Denied errors on files that are too large etc.
A file is still created, but when opened in the Event Viewer, its completely blank.
Hi there!
Unreal tool, Is there a way that this can be run as a service ? so it can be used with Tasks ? This is for ADC Dokan.Net
This method below, when I try run package throws error
/// <summary>
/// Returns object as parsed JSON from response.
/// </summary>
/// <typeparam name="T">Type of object to parse</typeparam>
/// <param name="response">Response to parse</param>
/// <returns>Parsed object</returns>
public static async Task<T> ReadAsAsync<T>(this HttpWebResponse response)
{
var text = await response.ReadAsStringAsync().ConfigureAwait(false);
return JsonConvert.DeserializeObject<T>(text);
}
CS0121 The call is ambiguous between the following methods or properties: 'Azi.Tools.HttpWebRequestExtensions.ReadAsStringAsync(System.Net.HttpWebResponse)' and 'Azi.Tools.HttpWebRequestExtensions.ReadAsStringAsync(System.Net.HttpWebResponse)' AmazonCloudDriveApi
How to fix it?
I may not I have not setup my security key properly, but I keep getting a response of:
'error_description=An+unknown+scope+was+requested&error=invalid_scope'
Where/How does one authorize Amazon Drive Scopes for a given security key?
So I have tried using this over 24 hours and it appears something happens and uploads get stuck and queue up until hard drive is full.
So I tried to do the install with Doken.NET redist 1 and the installer tells me its not installed. ?
Hello i am looking a a cmd command so i can mount my drive! because the automount does not always work and the drive becomes unmounted after a while on windows 10 also i would like to state i updated to the new dokan version i think its time for a acd 1.60 update :)
The small file type tooltip (Maximum size of files which will be cached whole on first request.) that appears overs "Small files size, Mb" also appears when you hover over "Small files cache, Mb", "Files download" and "Files uploading"
While I am here, can you explain the purpose of the small files cache? Does that have anything to do with uploading or is that just something like a quick access feature for files already backed up?
Appears you can not write to the Cloud Drive Letter in explorer with out administrator privileges.
I need to get the profile (= the Amazon Customer) for an Amazon Drive Account - especially Name and ID.
This can be retrieved when getting an AccessToken (providing additional scopes).
See details here: https://developer.amazon.com/public/apis/engage/login-with-amazon/docs/customer_profile.html and https://developer.amazon.com/public/apis/engage/login-with-amazon/docs/obtain_customer_profile.html
When using robopy copy with ACD It appears to remove the remove directory from the cloud when using Robocopy
regardless of switches.Hello, I have added a secret key and created a Login With Amazon, object. What else needs to be done to create a link that will work with this library?
I'm not sure if its the same problem, but when using Beyond Compare the file appears to copy to the mounted ACD folder, but then disappear immediately after the copying completes
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.