How to get DL (distribution List) from Microsoft Exchange Server via EWS in Java?
I have tried EWS Java API but could not find list of Distribution List(GAL) of exchange server, any help regarding to this API or any other would be appreciated.
The GAL is not directly supported. You can use the ResolveNames method to resolve individual names. To perform a search on the GAL, you need to use LDAP. See http://www.infinitec.de/post/2005/02/How-to-get-the-Global-Address-List-programatically.aspx.
Take a look on JIntegra. I remember that they support of MS Exchange. Probably some API exists. Good luck.
You can use LDAP if you have access to that. Or PowerShell. But Henning is right EWS itself has pretty limited stuff here.
Related
I want to send pm messages via Telegram API not with Bot API, but when I want to read related documents about how to make a request I actually do not understand any thing. Can anyone guide me how to start using Telegram API?
short answer: there's a jave lib you can use (https://github.com/rubenlagus/TelegramApi)
Steps are very clear and straightforward(https://core.telegram.org/api#getting-started):
1- Create yr application(register yrself for API usage):
API Key, Hash, configuration API will be generated for you
2- learn how to call APIs if you dont know there's a great course at codecademy (https://www.codecademy.com/apis)
you should know http concepts like get, post
3- authenticate yrself by auth_key_id and then using auth.sendCode method by passing auth_key_id, hash, phone_registered . steps are in https://core.telegram.org/api/auth
3- call telegram endpoints(https://core.telegram.org/methods). you can use some online tools to ease yr learning curve like https://www.hurl.it/
i have to admit since there's no code samples, it's not easy to use this API but steps are easy and it takes only some time.
hope it helps
I've be looking for a while now but only found old or incomplete projects related to this purpose.
Velruse is Python library for identification thanks to OpenId, Google account, Facebook connect, etc .. and I didn't find the equivalent for Java but I guess it may exist I'm just not looking in the good direction!
If anyone has experienced this before could he share his knowledge on this.
What I've found:
OpenID4Java : Seems to be only for openID
JOpenID : Seems to be only for openId
OpenId Selector : Javascript client side implementation providing openID, could be coupled with one of the previous java library on the server side.
You can use Velruse as a service, you don't need to know python. You only need to connect and velruse does the magic for you :)
So I want to write a servlet which uploads a video to a youtube channel using the Java API, but I can't seem to find a way of specifying that I want to go through a proxy server. I've seen an example on this site where someone managed to do this using C#, but the Classes they used don't seem to exist in the Java API. Has anybody managed to successfully do this?
YouTubeService service = new YouTubeService(clientID, developerKey);
I'm new here so I'm unable to comment on posts (and a little late on this topic), but Jesper, I believe this is the C# sample that the original poster was talking about: How to upload to YouTube using the API via a Proxy Server
I can see no "direct" way of porting that example to Java though, since the GDataRequestFactory doesn't seem to have any proxy-related fields.
I was also having issues with the Java client Library with proxy in our application. Basically, the library picks up the global Java proxy settings:
System.getProperty("http.proxyHost");
System.getProperty("http.proxyPort");
but for some reason not everywhere. To be more precise, even with a proxy server properly configured in Java, YouTube authentication (calling service.setUserCredentials("login", "pwd")) would use a direct connection and ignore the proxy. But a video upload (calling service.insert(...)) would use the proxy correctly.
With the help of folks at the official YouTube API mailing list, I was able to nail this down. The issue is that the authentication is performed using SSL (HTTPS) and since there is a different set of properties for the HTTPS proxy, this didn't work. The fix is to simply set https.proxy* properties as well (in addition to http.proxy*), so that these point to a valid proxy server too:
System.getProperty("https.proxyHost");
System.getProperty("https.proxyPort");
I want to create a java program to connect to an outlook webmail server to check for unread emails. I am not looking for an open source java based email client etc.. etc..
I am basically asking if it is possible to create a Java interface to an Outlook Webmail Server. I have been trying to hunt down how I would even begin to do this and it isn't inherently clear. Thanks..
You can use WebDav interface before exchange 2007 or EWS (Exchange Web Services)in Exchange 2007+
EWS Reference - http://msdn.microsoft.com/en-us/library/bb204119.aspx
Also a blog that may start u off with webdav
http://blogs.msdn.com/dotnetinterop/archive/2008/07/21/connecting-java-to-exchange-over-webdav-with-apache-httpclient.aspx
You could also try to have a look at the free exchange clients. Maybe you'll find informations regarding the protocol there.
Apache is developing a API for it Apache POI using which u easily can connect to outlook....
Sending email is easy with commons-email, and with spring it is even easier. What about receiving incoming email? Are there easy to use APIs that allow to bounce emails, process attachments, etc.
SubEthaSMTP Mail Server allows you to create your own SMTP Server for receiving emails.
James is probably your best bet, but email handling is extremely complex, requiring not only configuration of your MTA (the James server), but also DNS. In the past, I've found it easier to initiate my handlers via hooks from non-Java MTA's like postfix. And procmail might also be useful to you. For a Java MTA though, James rocks.
Apache Commons Net is the perfect library to fetch mails via POP3. IMAP is not supported.
Review the Mail component from apache camel
http://camel.apache.org/mail.html
See if Sun's own JavaMail (API docs) suits your needs.
I'm not sure about easiest, but at least it is a widely used way.
Check jGuru's JavaMail tutorial here. There are ways to read and detach attachments.