草庐IT

google-plus-ios-sdk

全部标签

c# - 在 C# 中调用 google Url Shortener API

我想调用googleurlshortnerAPI在我的C#控制台应用程序中,我尝试实现的请求是:POSThttps://www.googleapis.com/urlshortener/v1/urlContent-Type:application/json{"longUrl":"http://www.google.com/"}当我尝试使用这段代码时:usingSystem.Net;usingSystem.Net.Http;usingSystem.IO;主要方法是:staticvoidMain(string[]args){strings="http://www.google.com/";v

c# - 未知模块中发生类型为 'System.IO.FileNotFoundException' 的未处理异常

我正在开发一个C#应用程序,但在调试运行时出现以下错误:Anunhandledexceptionoftype'System.IO.FileNotFoundException'occurredinUnknownModule.Additionalinformation:Couldnotloadfileorassembly'Autodesk.Navisworks.Timeliner.dll'oroneofitsdependencies.Thespecifiedmodulecouldnotbefound.Autodesk.Navisworks.Timeliner.dll位于应用程序的调试文件夹

c# - 在 System.IO.Directory.GetFiles() 中排除文件扩展名

有没有办法获取文件夹中的文件数,但我想排除扩展名为jpg的文件?Directory.GetFiles("c:\\Temp\\").Count(); 最佳答案 试试这个:varcount=System.IO.Directory.GetFiles(@"c:\\Temp\\").Count(p=>Path.GetExtension(p)!=".jpg");祝你好运! 关于c#-在System.IO.Directory.GetFiles()中排除文件扩展名,我们在StackOverflow上找到

c# - 适用于 Asp.net Mvc 的 Google Chart HtmlHelper

GoogleChartApi是否有任何HtmlHelper扩展??(我喜欢用于一些基本图表,例如饼图、条形图)萌萌哒 最佳答案 Google表示您插入的图表如下:所以写一个像这样的HtmlHelper应该很容易(未经测试):namespaceSystem.Web.Mvc.Html{publicstaticclassGoogleChartHelpers{publicstaticstringGoogleChart(stringcht,stringchd,stringchs,stringchl){return";}}}并这样调用它:应该将

c# - 从IOS图片上传到.net app : Rotate

我有以下代码用于将图片从IOS设备上传到我的.net应用程序并调整其​​大小。用户习惯以纵向拍摄照片,然后所有照片都以错误的旋转方式显示在我的应用程序中。有什么解决方法的建议吗?stringfileName=Server.HtmlEncode(FileUploadFormbilde.FileName);stringextension=System.IO.Path.GetExtension(fileName);System.Drawing.Imageimage_file=System.Drawing.Image.FromStream(FileUploadFormbilde.PostedF

c# - 安装Azure SDK 2.5后如何运行Azure 2.2项目

安装AzureSDK2.5(与2.4和2.2并排)后,我无法在本地运行我的2.2项目。我收到以下错误:WindowsAzureTools:Error:TheinstalledMicrosoftAzureComputeEmulatordoesnotsupporttherolebinaries.PleaseinstallthelatestMicrosoftAzureComputeEmulatorandtryagain.看起来计算模拟器2.5取代了2.2而不是并行运行。我试图安装2.2计算模拟器,但我得到了一个Anewerversionofthisproductisalreadyinstal

c# - 使用 C# 的 Google Drive API - 上传

我正在尝试使用来自asp.net应用程序的GoogleDriveAPI上传文件。问题:代码在本地工作,但当上传到服务器时没有任何反应(页面一直在加载...没有显示同意屏幕。感谢帮助。“UploadedPdf”文件夹可写且文件夹中存在client_secrets.json。注意:我没有在服务器上安装任何东西,只是将包括GoogleAPIdll在内的所有文件上传到服务器的bin文件夹中。UserCredentialcredential;using(varfilestream=newFileStream(Server.MapPath("UploadedPdf/client_secrets.j

c# - Synaptics SDK 找不到设备

我正在尝试使用SynapticsSDK在Synaptics触摸板上获取设备句柄,特别是使用SYNCTRLLib中的方法。但是,SYNCTRL方法找不到它,返回-1。同步.cs:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSYNCOMLib;usingSYNCTRLLib;namespaceTP_Test1{classSyn{SynAPICtrlSynTP_API=newSynAPICtrl();SynDevic

c# - Google 在哪里使用 C#

关闭。这个问题是off-topic.它目前不接受答案。想改进这个问题吗?Updatethequestion所以它是on-topic用于堆栈溢出。关闭12年前。Improvethisquestion查看SO用户资料和其他网站,我注意到一些为Google工作的知名用户包括JonSkeet使用C#作为他们的主要编程语言。或者至少,他们最活跃的是与C#/.Net相关的主题。这让我得出结论,或者至少假设,C#在Google内部被广泛使用。我的印象是Google使用C++、PHP和其他一些仅供Google内部人员使用的secretG编程语言。总而言之,我无法想象他们会使用任何与Microsoft相

c# - 如何在 C#.net 中使用 google + api 向 google hangout 发送消息?

按照此链接中给出的步骤https://developers.google.com/+/quickstart/csharp,googleplus借助该链接中提供的gplus-quickstart-csharp代码自动登录。现在我想使用上述API(代码)向googlehangout发送消息我检查了这个链接https://developers.google.com/+/hangouts/api/gapi.hangout.data#gapi.hangout.data.onMessageReceived在可用的sendMessage(message)中,我如何在我的C#代码中实现该方法。有什么想