IBM Connections - get all followers of a Forum topic - api

I am attempting to send emails to all of the users currently following a topic when a reply is posted in IBM Connections. In IBM's API I can find how to assign a user to follow a forum topic but I do not see any way to retrieve a list of all the users that are currently following a specific topic. Does anyone know if this kind of functionality exists?

AFAIK, that information is not available via the API.
You can get a list of the resources followed by the authenticated user via the Following API, but that does not work for any other users (I assume due to privacy issues).
You could fetch it the info you are looking for from the database via SQL statements, but that is not officially supported, as the databases could/will change with every product update. In the IBM Connections Forum at developerworks, there is an example for Communities.

Related

Getting a list of Hotels availability information from booking.com connect API

We do marketing solutions for our hotel clients. For that matter, we need to know their room availability. it would be easier to collect such information from booking.com cause all our clients use booking OTA, other than connecting API directly to each of them.
My question is: Can we get other hotels' availability from booking.com Connect API?
OR is there any other GDS solution we can get booking.com existing data, like Sabre?
In order to achieve what you want, Aggregators must be enabled in your PCC; in the documentation, there is a special field to enter the Aggregator number so that using this, you can retrieve the information from various hospitality sources.

softlayer API allowed ip ranges

we use the following page to update our firewalls:
http://knowledgelayer.softlayer.com/content/what-ip-ranges-do-i-allow-through-firewall
We have a couple of challenges with this page:
This page contains html 4 tables, which aren't easily parsed without loosing the table headers (which use span tags).
This page is unified while I'm only interested in certain subsections: Frontend (public) network, SSL VPN Datacenters & Service Network & PPTP VPN Datacenters.
The primary reason for adding this to an API, is because we don't receive updates to this page. While it could impact availability if we don't update this information on our production routers.
The CIDR ranges have been syntactically incorrect in the past. I have addressed that issue in the softlayer forum below.
With the challenges in mind, could you provide the allowed IP ranges information in the SoftLayer API?
The people who are responsible for providing that information are available here: https://control.softlayer.com/support/tickets/34087275
This is a closed forum, and I'll update anything relevant here. Their stance is that updating is a sysadministration problem, and therefore not their problem. They welcome API changes, and think this is the suitable forum for that.
Please note I am not looking to parse html tables, I'm looking for a solution that solves the notification problem.
It could be a good information for adding to the API, I recommend to attach this forum to the ticket, in order that can reach the right people, in order to consider the implementation for it

Google Analytics APIs: get two specific numbers only (as simple as possible)

I want to get two statistics (Visits today, visits total) from my GoogleAnalytics account.
I checked Google Analytics resources such as
https://developers.google.com/analytics/devguides/reporting/?hl=en
https://developers.google.com/analytics/devguides/reporting/core/v3/reference
But it seems pretty time-consuming to get a certain ID, oAuth and everything working.
I do not need any user authentication, just an API request from my backend (GA authentication should be provided via request url for example).
To be honest, I found myself jumping from one link to another when doing tutorial and did not accomplish anything at the end.
What is the quickest way to get everything working? If there is a nice tutorial on getting JUST basic (two numbers) stuff from GoogleAnalytics I would be very grateful (everything I see is working almost as GA itself - just with custom styles/graphs etc. I need plain and simple number returned via REST api for instance.)
Thanks for any info!
Auth is understandably complicated, but it sounds like you need service account authentication since you are querying your own data and need it to run on the back end.
The quickest way to get from zero to querying the API is to follow the Hello Analytics Guide. I have linked you to the PHP service account page. But there are examples of service accounts, web apps, and installed apps in four different languages.
But an outline of the main steps are
Create a project in the Google developer console
Within that project create a service account and download the p12 file.
add that service account email to the particular view you wish to query.
You are now ready to modify the Hello Analytics example.
Below is a simple query for the number sessions today:
function getResults(&$analytics) {
return $analytics->data_ga->get(
'ga:XXXX', // Replace with your view ID.
'today',
'today',
'ga:sessions');
}
Feel free to ask any clarifying questions in the comments section.

Getting Windows 8 Contact Info Without Picker

I have reviewed the few number of windows 8 contact questions on here, as well as the MSDN Contact picker sample and couldn't find an answer to my question.
It seems like, from most answers, the only way to get contact information from the people contract is to have the user manually choose the people they want the information for.
That doesn't seem completely right, since in the mail and messenger apps, they have found a way to get contact information for people that email or IM you without me choosing those people.
How do you go about accomplishing this programmatically? I would like to be able to pull either all contact data at once or get contact data by looking up specific emails linked to those users.
I would assume that in the Mail, People and Messaging apps, they are using details pulled straight from the users Windows Live account. I think you should be able to do this in your app, look here for documentation on the Live SDK: http://msdn.microsoft.com/en-us/library/live/
I don't think it is possible to do this right now without a Picker. This would vioalate some security restrictions. But if you find a way, please post it here.

Book Database Data

I am creating a database which will contain information about book. (title, author, description, edition etc). Is there anyway i can download book data from the web so that i can insert in my database. I want database to have between 500 - 1000 books information. The database is in Sql Server.
Most well known book content API's are from Amazon.com and more recent from Google (Amazon's API can often seen been republished on the web):
Amazon Content API program
Google Book Search API
To see what is allowed with the Amazon API please see:
Amazon Content API agreement
Some excelent info on other providers can be found here:
Code4lib: Using Book Data Providers to Improve Services to Patrons
You could source data from websites like Amazon.com - they have APIs for this. But, you may not be able to redistribute the data without permission from Amazon. There's nothing stopping you from getting public domain data from a government organisation like the Library of Congress - they probably have it somewhere.
If you are just looking for sample data you can use the pubs db that comes with ms sql server
The Internet Archive offers Open Library bulk exports in a variety of formats (MARC, primarily). If you are looking for records for specific books, you might look at LibraryThing's API.