GET VIMEO VIDEO DETAILS USING JAVA - OAUTH2.0/RESTFUL - java

I registered with "https://developer.vimeo.com/" - (Advanced API) & I have consumer key , secret etc..
I tried to get the list of videos using Scribe, SignPost Libraries. I hope vimeo implemented OAuth1.0a Version so it's asking me to visit AuthURL to produce AuthCode. Same we need to input for authorization. Now Coming to my Implementation, I need to get AuthCode (PIN/Verifier) without human interaction.
Also, Let me know if any RESTFul Service available with Vimeo Developer API.
My Programming Language: JAVA.
Thanks in advance for your inputs.

You may want to have a look at https://vimeo.com/forums/topic:34314, about ACCESS_TOKEN and ACCESS_TOKEN_SECRET. The example is in php, using vimeo.php library, but I'm sure if you look up the phpVimeo function in that library, it may be translated to java.
Hope this helps and regards

Related

Accessing Facebook Marketing API from Java

We have Java based CRM and want to integrate facebook campaign management. I checked facebook marketing api and they provide PHP and Python based SDKs. I'm wondering how we can access/consume facebook marketing api in Java, there should be some rest interface which I could not find.
Anyone have idea?
There is newly released Java SDK (beta) for Marketing API: https://github.com/facebook/facebook-java-ads-sdk. You can give a try.
You can use
RestFB
The Marketing API support is currently in a beta state and you may use
it at your own risk. We would like to hear your feedback and hope you
open any issue at Github or write a message to Google Groups.
Here are the Java Docs
http://restfb.com/javadoc/index.html
http://restfb.com/javadoc/com/restfb/types/ads/AdCampaignGroup.html
http://restfb.com/javadoc/com/restfb/types/ads/class-use/AdCampaignGroup.html
Besides RestFB, Spring Social seems to be the best contender:
Java (Spring) by Spring Social - Looks like there is a pull request to integrate the ads management api, but, it hasn't been merged. https://github.com/spring-projects/spring-social-facebook/pull/155/files
Additionally, there is also Facebook4j
http://facebook4j.org/en/index.html
Well, the Marketing API docs are here:
https://developers.facebook.com/docs/marketing-apis
The quickstart is here:
https://developers.facebook.com/docs/marketing-api/quickstart
The reference is here:
https://developers.facebook.com/docs/marketing-api/reference/v2.5
Even if maybe RestFb does not support this, you can always use direct HTTP calls to the Marketing API (for example via Apache HttpComponents).

About using google client api

I am planning to write a native java application that can get some blogs by searching with a few words. And I know we can get some results by searching on google blog search. So I want to know if I can write such an application by using google blog search. But I found that google seems just offer a javascript API for its blog search. So could anyone tell me how to use google's blog search service in java?
If it's not possible, do you guys know some other services that can do similar thing?
Thanks a lot
Google's blog platform is Blogger, and it provides an API for working with the blogs on that platform. In addition, there are a number of client libraries for this API, including Java.
Here's some resources to help you get started:
Here you can download the Java client library for the Blogger API
Here is the documentation for the Blogger API in general.
You can see information on the different types of API calls you can make here.
And here is a link to the APIs-explorer for the Blogger API, where you can play around with its capabilities
If you're new to using the Google Java Client Libraries for accessing Google APIs, you may also want to look at the documentation for the client libraries in general, here
It looks like by default, the API only supports searching for posts in a given blog, not across all blogs, so you may need to do something clever to achieve your end goal (but it wouldn't be fun if it was given all away for free, right?)

API's and services of a website

I am developing an app for a website at present, I have obtained the login API for it and successfully implemented this (the login). Now I want to move on further into the rest of the pages in the website. My doubt is, will there be a separate API for each of these pages? Should I use a different url address for each of these pages?
I don't know much about HTML or web development some clarity in this matter would be much appreciated.
Thanks.
You should ask the Webservice developer about its documentation. They should provide you with a well documentation for the Webservice.
Normally a documentation should describe the accessing methods, parameters, response,etc.
W3School Provides a good tutorial about webservices. This link mighe help u.

Java implementation of Google Custom Search API

I need some help using the Google API in Java. Basically, I need to create a web application in Java that will call the Google Custom Search Engine (using their API) and retrieve the result.
I have read the Google starting guide, but not sure how to use their API. Can anyone please point me towards some examples or tutorial links.
The download off http://google-api-java-client.googlecode.com/ has all the libraries you'll need, but the samples doesn't have anything specific to Custom Search. The closest you'll get is here: they provide a jar file with source code. It doesn't use the Google Java client library, but might get you started with the REST api.

Android and Jtwitter

I am trying to connect to twitter, because i am trying to write an app (for the android platfrom) that updates your twitter status. the problem i have is with Oath. I have both Jtwitter and Signpost.
how do i get these below?
JTWITTER_OAUTH_KEY ,JTWITTER_OAUTH_SECRET
I read that you have to register your application. Mine is just a testing application as I am messing around with android right now. Do i still have to register my app?
In "https://dev.twitter.com/apps/create" they are asking me for an "Application Website:"
which I dont have. do i need to have a website to register my application?
is there any easier way to connect to twitter? without oath?
thx!
You have to register your application with Twitter here to get your key and secret. You don't have to provide a real website if you're just testing. Make sure you provide real information when you release your application.
I also recommend sticking with OAuth, it's worth it and shouldn't be too complicated to work with. I personally use twitter4j for integration with android which you can find more info on here. I'm sure JTwitter is also fine but I cannot comment on it since I never tried it.
Once you get your key and secret, it should be pretty straightforward. If you require further assistance, there are plenty of tutorials you can find around to help you.
Ryan
You really should register on dev.twitter.com for your own oauth key & secret. You can use the String constants Twitter.JTWITTER_OAUTH_KEY and Twitter.JTWITTER_OAUTH_SECRET to access Twitter via the JTwitter account. This is fine for a bit of experimenting, but nothing more: About once a year, someone will abuse this freedom, at which point we change the oauth keys.

Categories