how to get lync chat in to java app using lync API - c#

I have a lync account.When someone send a message.I want to get that message in to my java application.What are the steps I should follow to create this application.I read lync API but i can't find way to get data inside lync.If I can get that data into java servlet it also ok.I want to get chats(mainly) and availability of other users.

(as far as I know) there isn't any support for using the Lync APIs in Java.
However, UCWA has been designed as a REST-like API, using just HTTP Request and Response calls to interact with Lync. This means that although it's primarily meant for use on the web, you can use it in any language, including Java.
have a look at ucwa.lync.com - there's plenty of examples. The examples are in JavaScript, but if you know how to do HTTP requests and deal with responses in Java, you should be fine.

Related

Is it possible to use the .NET Podio API to send emails from Podio the way Globiflow is able to?

I know that Globiflow has the ability to allow users to send emails from Podio. We would like to convert this to our custom backend instead of using Globiflow. Which brings up our question: is it possible to use Podio's API to send emails from Podio? I'm not seeing any documentation for this so any insight would be great!
This is absolutely possible. The reason you aren't seeing any documentation on that for Podio is because the Podio API is only for getting data out of Podio or editing data that is already in Podio. You can use any of the SDKs from Podio to get the data out, but then you need to send the email with a tool of your choice. This can be custom coded in a programming language and hosting environment of your choice, but I recommend integrating with Mailgun using their API: https://www.mailgun.com/
Hope that helps!

How to Develop Facebook App When C# SDK Deprecated

Currently, I have an app and I want to integrate it with Facebook. My App is bases on C# and now the C# SDK is deprecated. Some requests can't be made by client side requests (extending access token for example), so Javascript SDK can't help.
Is there anyone who knows how to integrate a C# app with Facebook when C# SDK deprecated?
Thanks
Facebook open graph api's over REST. Event though C# SDK is deprecated, it won't be that tough to write basic http calls with basic http library of C# to make api calls.
With regards to login, you would have to embed an instance of browser, as far as I can remember, C# had msie embed options. Using the browser embed, one would have to capture the access token returned on redirect and use it later for making http calls to REST interfaces of Facebook api's from C#.

Authenticated WCF Service for MonoTouch, Mono for Android and WP7

Iam writing a Phone App where the end user should be able to access their own personal messages and other personal content.
Does anyone have some good ideas of how to create a service like this, should i use Soap or Rest, should i simply send the username/password with every request or ?
What would be the best choice for a service i would like to access from all three platforms and that only returns information specific to the authenticate user.
As a suggested alternative to WCF that's at least worth taking a look at, ServiceStack, an open source REST Web Services Framework, is well suited for use in a mobile app and it supports the Mono platforms. It also has built-in support for user authentication. At the very least, it offers a JSON serializer that performs very well.
There's a Wiki for ServiceStack here.
I don't know what the support is like for MonoTouch / MonoDroid, but WCF supports secure services without adding username/password to every request manually (it actually does, but it includes it in the headers).
See this blog post for a great starting point for using WPF Custom Username/Password Validator: http://blogs.msdn.com/b/pedram/archive/2007/10/05/wcf-authentication-custom-username-and-password-validator.aspx

How to send Twitter updates from C#

how do I send Twitter updates in C# but without the need of OAuth?
The reason is, is because I heard that Twitter limits how many Tweets one can send, and I am planning to send a lot.
The officially supported means of sending a tweet via a third party application is by using the REST API twitter provides. This does require clients to use OAuth to authenticate.
If you don't want to deal with the API directly you might consider using a library which wraps the official API. I can't personally recommend any particular library as I have not used a Twitter library in a long while, however Twitter does provide a list of API implementations which may interest you.
It is possible that one could use the WebBrowser control to interface with twitter by website form fields with values passed to your application through your application's user interface.
Doing this is not advised for the following reasons:
It's officially unsupported and against Twitter's terms of use. This method depends on your application parsing the twitter user interface in order to find and populate form feilds. The names of these feilds may change at any tine without notice.
It will not circumvent the rate limiting. Twitter's rate limiting is enforced at the server side and the web interface is not likely to be immune to this rate limiting.

How to write a command line C# program that posts to Twitter

I'd like to write a console program in C# that posts a Tweet to Twitter. I've never used the Twitter APIs before and don't know anything about how their authentication works. I found an API library called Twitterizer, but it seems geared towards web applications and wants the user to logon with a web browser. All the API docs on Twitter's website seems geared around this scenario as well.
Is it possible to access the Twitter APIs using a console app with no web browser access? I'm perfectly fine hard coding in the name and password for the Twitter user I want to post under as well. Thanks!
Mike
You'll need to use OAuth for authenticating in twitter.
Then use regular HTTP Request to use the twitter JSON-based API.
Here you can find a good article about OAuth, Twitter and console applications.
Also take a loot at linq2twitter lib. From it's documentation;
The Twitter API is built using
Representable State Transfer (REST).
Wikipaedia defines REST as "...a style
of software architecture for
distributed hypermedia systems...",
but I'm going to be so bold as to try
to simplify what that means. In
practice, REST is a Web service
protocol built upon Hypertext Transfer
Protocol (HTTP). You use the REST Web
service by making an HTTP call with a
URL and getting text back in some
form, which is often XML or JSON. So,
if you were to write code that made an
HTTP request with the following URL:
http://api.twitter.com/1/statuses/public_timeline.xml
You would get back an XML document
with all of the Twitter statuses from
the public timeline, which is a
snapshot in time of the last 20 tweets
at the time of your request. Go ahead
and open your browser, copy and paste
the URL above into the address bar,
and see what you get back.
I couldn't find any decent information on the web on how to do this, so I decided to write my own blog post with all the details.. Enjoy!
http://blog.kitchenpc.com/2011/01/22/rise-of-the-twitterbot/
of course you can use anything to connect to Twitter via RESTful api.
you should use oauth, and set up your application in http://dev.twitter.com, then you should read all articles listed in documents, you must specify your app as Client but not Browser so user input a number to get through authentication.
you can use many libraries so that you can save your time, all are listed in the documents
and be CAREFUL, you should not use Twitter's own api console which is buggy (as i know parameters somtimes can't be parsed), you should use APIgee instead which is powerful and stable.
if you want use basic authentication, you should use api proxy (one famous is twip), if you just need only one single C# apps, you must code by yourself:
you should use given username and password to login twitter, parse cookies passed
use normal oauth to get temporaly access token url.
use cookies got from step 1, emulates form submit to allow your apps, capture PIN code
use pin code to finish oauth.
MOST IMPORTANT, you must store access token in client's machine so next time you can bypass above steps
Just wrote a Twitter Bot in C#. This is currently posting tweets to #valuetraderteam.
https://gist.github.com/sdesalas/c82b92200816ecc83af1
The API component in the GIST below is less than 500 lines, only dependency is Json.NET, you'll need to download the latest DLL for either x64 or x86 (depending on what platform you are targetting) and include as a reference in your project.
There is an example at the bottom of the page of how you can make a tweet from a console application
Hopefully this is useful to some other people out there.

Categories