我想将现有的Google文档电子表格复制到新的Google文档电子表格中.我不认为v2.0 .NET API本身可以处理它(或者如果是这样我找不到类/方法),但是它看起来像v3.0协议可以,但我不知道如何在当前的框架,或者即使有可能使用当前的.net api.例如.~DocumentsFeed.copy()(伪代码).
导出到临时excel文件然后使用新名称上传是不可能的,因为一些复杂的公式在转换过程中搞砸了.
我是一个.NET菜鸟所以任何信息将非常感激,例如.如果我只能使用v3协议(ajax等)而不是.NET API,我将如何在.NET中执行此操作.
谢谢
编辑:(最后的课程感谢@langsamu的帮助!)
using System;
using Google.GData.Documents;
using Google.GData.Client;
using Google.GData.Extensions;
public class GoogleDocument
{
private DocumentsService ds;
private String username;
private String password;
public GoogleDocument(String username, String password)
{
this.ds = new DocumentsService("doc service name");
this.username = username;
this.password = password;
this.ds.setUserCredentials(username, password);
this.ds.QueryClientLoginToken();
}
public void copyDocument(String oldFileName, String newFileName)
{
SpreadsheetQuery query = new Google.GData.Documents.SpreadsheetQuery();
query.Title = oldFileName;
query.TitleExact = true;
DocumentsFeed feed = this.ds.Query(query);
AtomEntry entry …
Run Code Online (Sandbox Code Playgroud) 我正在LAMP堆栈中创建一个应用程序,我希望为用户提供使用自己的域而不是我的站点的子域的能力.例如.
而不是:http://some_user.mysite.com
他们将使用:http://store.some_user.com/
我知道有一些公司使用CNAME记录提供此功能.(http://help.bigcartel.com/articles/14-using-a-custom-domain)但是我不确定他们是如何实现这种端到端的.
我的问题是:
这个过程叫什么?(所以如果需要,我可以进一步研究)
我需要做些什么来提供这个?即.我需要在DNS,apache和php方面做些什么来实现这个目的?
任何建议,链接或代码片段将不胜感激.
谢谢
UPDATE
到目前为止,我已经能够设置通配符DNS条目,但是我仍然遇到解析到其他域的CNAME记录的问题.例如.
http://store.weareunified.com/ - > http://weareunified.joshstuart.com.au/
weareunified.com(这是一个测试用户主机)DNS
weareunified.com. A 111.67.3.227
store CNAME weareunified.joshstuart.com.au.
Run Code Online (Sandbox Code Playgroud)
joshstuart.com.au(这是主要的应用程序主机)DNS
joshstuart.com.au. A 111.67.3.227
* CNAME joshstuart.com.au.
Run Code Online (Sandbox Code Playgroud)