I'm trying to configure WhatsApp API in C#. I tried to implement it using examples such as:
http://www.dotnetprogramer.in/2016/01/how-to-send-whatsapp-message-through-csharp-net-application-by-using-csharp-coding.html
Send messages with whatsapi.net?
Looking into the aforementioned examples, i came to know that i'll require a WhatsApp password in order to send a message.
I downloaded a tool named WART (WhatsApp Registration Tool) from this site
https://github.com/mgp25/WART
and tried to get my whatsApp password by adding a phone number in following format.
(xx - xxxxxxxxxx) CountryCode - 10 Digit Phone number
Consider the following image:
But when i ask and request for the Code, this is what it says.
I looked for alternatives and found this useful point
In case WART isn't working, use this online tool: http://watools.es/pwd.html
but unfortunately this site seems to be unavailable.
I ALSO looked into more alternatives and found this WhatsApp API
https://github.com/mgp25/Chat-API/tree/master/examples
but this seems to be in Php, i don't really have the expertise to make the registerTool.php work.
Am i missing something here? Is the whatsApp API deprecated? Any sort of help/direction would really be appreciated.
Thank you.
Related
I'm a pretty new to C# and am much more familiar with Python. But interfacing with a couple programs is more straightforward with C# so I'm attempting to do what I want with it instead of Python.
I've created a Python application that uses SMTP, but I would really like to leverage the Google Calendar API. When I find C# code examples on how to write it, I'm confused as to what needs to be setup for it to work. Where does the authorization come from? A google app?
I would like a console application that can be run by another program which will send an email (or event invitation) to an Business Google account (in-house, co-workers). I'm lost as to where I need to start. What are the different things I need to accomplish this? I'm confused about whether I need to make a Google App and how to navigate what is involved in authentication, or whether I even need it. I didn't think authentication should be necessary except for the login in and password of the account I'm sending it from. Some direction would be appreciated...
Further Edit: Didn't know an iCal can accomplish an invite, most of the examples seemed to be for Outlook. That might work.
But knowing I can set it up through the business account it superb, thanks...
You don't need to make a Google app - if you have the account information for the Business account then you have the ability to use google's smtp server (your smtp server) to send email given that you have credentials - came concept as if you set up a desktop mail program to send and receive gmail.
Looks like this other stackoverflow question may help you out in the actual sending of the email:
Send e-mail via SMTP using C#.
Here is another article that looks more step by step:
http://forum.codecall.net/topic/65295-c-sending-email-through-smtp/
If it was me:
1. Get the credentials
2. Create .Net app to build and send an email - I would make the console app allow command line arguments as well. DotNetPearls is a great site for quick reference and has an introduction to cmd line with C#: http://www.dotnetperls.com/main
Hope this helps - just happened to see the question and realized I have been down this road before
Just implemented sharing via SMS, Mail Twitter and Facebook with the from the WP8 SDK provided ShareStatusTask:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharestatustask(v=vs.105).aspx
Whatsapp does not seem to be supported here - do you guys know a trick to get around this?
Technically no, not yet, but something may come in the future using Uri Schemes.
For now, it seems that you can only run the WhatsApp app by doing this:
await Windows.System.Launcher.LaunchUriAsync(new Uri("whatsapp:"));
but on iPhone, you can use this form of Uri
whatsapp://send?text=Hello%2C%20World!
so I expect the same functionality to appear in the near future in WhatsApp for Windows Phone. There's no reason why they wouldn't implement it.
In fact, maybe they already have, but I haven't found it publicly documented. See on Nokia Developer website for other Uri Schemes
My understanding is that you can only make your App available as a means of photo sharing. (See here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967563%28v=vs.105%29.aspx)
There is no way to share to a particular third party App, unless it has "Extended the share picker" as seen at the link above.
You can share text with whatsapp friends by using following URI scheme:
await Windows.System.Launcher.LaunchUriAsync(new Uri("whatsapp://send?text=Hello"));
I want to use Google Webmaster Tool API in c# application. I have gone through different documents that are available on https://developers.google.com. Unfortunately I did not get any working example of using Google WT API using .Net . I have also seen the “Client Libraries” (“https://developers.google.com/gdata/docs/client-libraries”) for this.
Can anybody provide me any working example of how to use Google Webmaster Tool API in c# ?
I have account on Google WT, and want to download .CSV reports for “CrawlErrors”, “InternalLinks”,” TopSearchQueries” etc.
Thanks
Here you can find the official C# library source code for Webmaster Tools Data API:
http://google-gdata.googlecode.com/svn/trunk/clients/cs/src/webmastertools/
And here you can find examples of usage in the form of unit tests:
http://google-gdata.googlecode.com/svn/trunk/clients/cs/src/unittests/webmastertools/
More specifically, examples of authentication, QuerySites, QuerySitemaps, QueryKeywords, etc.:
http://google-gdata.googlecode.com/svn/trunk/clients/cs/src/unittests/webmastertools/WebmasterToolsServiceTest.cs
Note also there are some bug reports, your mileage may vary:
http://productforums.google.com/forum/#!topic/webmasters/gh7vCzYfm6A
If you're still getting 403 Forbidden, the reason behind this might be the 2-Step Verification installed on your Google account. If that's the case, try generating a dedicated password in the Application-specific passwords section of your Google account, and use it with GDataCredentials(this.userName, this.passWord).
Alternatively, you may try adding sub-accounts at https://www.google.com/webmasters/tools/user-admin and use of one of them. The 2-Step Verification concern may apply to those accounts, too.
I've been tearing my hair out for a while now about the best way to get import a users email contacts from a variety of different services, I didn't manage to find a decent .net solution and have ended up creating an interface for the open source PHP OpenInviter. However this doesn't work with Hotmail/windows live anymore, so I thought I'd do that myself with the Live Connect API (using REST and OAuth2), however the contacts only return a email_hashes which is no use as I want their actual email addresses, as I'm trying to import them into a new email address book.
Any ideas at all on how to do this or if it's possible at all! OAuth, screen scraping, whatever I'm not fussed I'd just like to get it done.
Thanks
Apparently there is no official solution to this problem (see http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/c5bc9b10-6080-40bf-a7ce-951a60efdfcb/#c5bc9b10-6080-40bf-a7ce-951a60efdfcb).
And according to the forums trying to do it is against terms and conditions (trying things like screen scraping).
I had this problem too. But then I found out that Google Plus is capable of pulling contacts from Hotmail accounts so I just looked at how Google Plus does it.
Just go the the "circles" page and look for the "inviter"-like functionality. There you find Hotmail, and if you look at how it works, you see that you need to add wl.emails and wl.contacts_emails to the scope when you request authorization from the Hotmail user.
As far as I can see you are already familiar with OAUTH and probably just picked wl.basic as the scope?..
I have an Idea for a simple webApp that would cross-link information from Evernote to Google Calendar. I was able to find a good Evernote Quickstart project but I am now searching for something to start with to begins accessing Calendar. Please advise if you know any good resources with code samples that would show me how to do the dirty work (i mean the authetication either via OAuth/AuthSub).
From what I have read about using OAuth with Google, it seems that you have to have a registered domain - I need to be able to access the service from my laptop's development server, so I guess I must stick with AuthSub.
When I 'googled' for this topic I found many questions similar to mine, yet none of them has been answered in satisfactory way.
Thank you in advance for your help.
UPDATE: I'm starting to think that either I am missing something or nobody is using AuthSub in ASP.NET...
I've recently created a sample how to use Google OAuth in ASP.NET and Google using the Dotnet OpenAuth library:
Using Google OAuth in asp.net
I hope this sample helps :)
Dominik
UPDATE March, 2015
By April 20th, Google will no longer support this api - Therefore I needed to migrate to OIDC. See my recent article here:
OIDC lightweight library for asp.net
In order to use OAuth, you must register your domain with Google at the following page: https://www.google.com/accounts/ManageDomains. This registration will give you the credentials you need to sign your OAuth requests. However, you could still specify a different oauth_callback url in the user authorization url. So the registered domain is not related to the oauth_callback.