将Zip上传到Google云端硬盘

时间:2017-05-31 10:17:15

标签: c# .net google-api google-drive-api google-api-dotnet-client

我希望在Google云端硬盘上上传Zip文件但使用C Sharp Windows应用程序(Frame Work 4.0 VS 2010)

enter image description here

credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
                                   GoogleClientSecrets.Load(stream).Secrets,
                                   Scopes,
                                   "user",
                                   CancellationToken.None,
                                   new FileDataStore(credPath, true)).Result;

1 个答案:

答案 0 :(得分:0)

Google .Net client library仍然部分支持.net 4.0

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >

    <gradient
        android:angle="90"
        android:centerColor="#555994"
        android:endColor="#b5b6d2"
        android:startColor="#555994"
        android:type="linear" />

    <corners
        android:radius="0dp"/>

</shape>

代码在我的Drive v2教程中被更改Google drive upload请注意,这不是可恢复的上传,您需要自己解决这个问题。