WSO2 DSS: Unable to connect to Google spreradsheet - wso2

I am trying to connect to a newly created Google spreadsheet, using the WSO2 Data Services Server (DSS), but it keeps giving me an error when I test the connection. I am using WSO2 DSS 3.2.1 with JDK 1.7.0_60 on Windows.
The sample Google spreadsheet is working fine.
It looks like this problem is due to the new format of the Google Doc URLs (introduced in March 2014)
https://docs.google.com/a/ishafoundation.org/spreadsheets/d/1U0uI5sKHy0WVgQcVtZ4mYMHSzTYZZJse35xy1Y1N7Xg/edit#gid=0
The older format is:
https://docs.google.com/a/ishafoundation.org/spreadsheet/ccc?key=1U0uI5sKHy0WVgQcVtZ4mYMHSzTYZZJse35xy1Y1N7Xg&usp=drive_web#gid=0
As a workaround to this, I am creating my spreadsheet in the old version of Google Sheets, using this link:
https://g.co/oldsheets
However, this message is on the Google Sheets help page
*Spreadsheets created in the old version of Sheets will eventually be converted to the new Sheets, which won’t require any action on your
part. More details coming soon. Thanks
This looks a bit scary to me, since it basically means that my data service will break at some random point in the future when Google decide to change the URL formats... Can someone from WSO2 let me know if this will be fixed in the next DSS update, and when we can expect it to be released.
Just a suggestion - but wouldn't it be better if we only had to enter the unique key for the spreadsheet (instead of the full link), and the DSS server used the Google Sheets API to retrieve the data. This might make our implementations a little more future-proof.

Yes this will be fixed in DSS 3.2.2 release. Associated JIRA is DS-930. Alpha pack can be found from this location
Thanks
Chanika

Related

Error Configuring WSO2 data analytics server

I'm currently experimenting/working on WSO2. What i'm trying to do is to have Data Analytics server configured. I started by following the below specified URL
https://docs.wso2.com/display/AM210/Configuring+APIM+Analytics#9d6747f5c0074928b18599abe472987d (Quick Steps)
After performing all the steps, i get the following issue on APIM cmd prompt
YES Its pretty evident from the error that no such table exists BUT that is exactly the issue i'm facing. What could really be the cause here?
Consider the following points:
I've not followed ALL the steps mentioned on
https://docs.wso2.com/display/DAS310/Getting+Started (BUT are they
required?)
In the installation prerequisites for DAS, JDBC-compliant Connector for Java is required which I've not yet installed (BUT its not mandatory at the same time)
Most of the QUICK STEPS for the configuration of DAS in the specified URL i.e. https://docs.wso2.com/display/AM210/Configuring+APIM+Analytics#9d6747f5c0074928b18599abe472987d where already in place and i only had to
Set Up JDK, ANT, Maven
enable the analytics section in the API-M_HOME/repository/conf/api-manager.xml
add log4j.rootLogger=, DAS_AGENT to API-M_HOME/repository/conf/log4j.properties
add snappy-java_1.1.1.7.jar to DAS_HOME\repository\components\lib
Yet the issue persists, Do let me know of what you think. Thank you
Since you are following quick start guide please extract the WSO2 API Manager and the WSO2 API-M Analytics distributions (zip files), to the same directory (preferably an empty directory).
Also, you need to generate some traffic to the published APIs in order to analytics server to create this table for the first time.

WSO2 Enterprise Store 1.0.0 : modify login process in Identity Server

I am working with Enterprise Store V1.0.0. For now, i use a users store linked to my LDAP for authentication, which is working fine.
However, all my web applications used a tool for auto login, i mean that a user is automatically logged in the app thanks to this tool. I would like to modify ES to integrate this tool.
After sometimes spent in the code, i think that the entry point should be in the Identity Server. I tried to get the code, modify it and use it with ES, without success. My problem is that i don't know where i can get the good version of the code. I found that the .jar file is generated with the pom.xml in product-es\modules\p2-profile-gen\, but i don't know where is the code i need.
If someone could help, it would be very much appreciated.
Thanks in advance.
Regards,

Push OO or xslt doc to google drive from django

I use pod to generate reports from django. A very smart solution, I enjoy it.
But pod solution required an Open Office (or LibreOffice) installation on client desktop (or server side).
To avoid Open Office software I will hope to send report to google drive as a new (or existing) doc from a django app (or python ...).
Someone would to share expertise with this kind of issue? Else, What would be the steps to publish a google doc from django app?
If your Python app can produce a csv file, you can upload it to Google Docs using the Documents List API and convert it into a Spreadsheet:
https://developers.google.com/google-apps/documents-list/#creating_or_uploading_spreadsheets
Many other file formats can be imported, please check the docs for more details.

programmatically get ics file from icloud?

I've been running a process for a client that involves grabbing their publicly available calendar file from me.com by making an https GET call in a ruby script, and then converting the data in the .ics file to html, then copying it to their website.
They recently upgraded to Lion and iCloud, and it appears that, while the calendar I want is still publicly available, it's only usable by webCal enabled apps--I can no longer get it over https.
I've poked around a bit on google, but haven't see anything that points me in the right direction yet. Does anyone know if there's a way to access public calendars on iCloud via http/https? Or is it strictly via webcCl? The documentation does make it sound like iCloud is designed to only share data among Apple devices. Am I just stuck here?
I'm surprised no one has answered this yet...
If you go to iCloud.com, you should be able to get the URL of the calendar that you have syncing using a public share. It should be a webcal protocol (webcal://). However, if you change that webcal to https, it will download the ics format instead of trying to sync using Macs iCalendar.
I have my website linking to the https ics file, and it appears to be working just fine (for now at least).
icloud is gona supply an API for developers soon at least thats what they sayed in the last keynote

Is there a way to extract data from Nagios as if it was a web service?

My situation: I'm working on a web monitoring dashboard that assembles informations from different applications and sources and generate graphs, info graphics and reports.
The applications I'm trying to integrate are CACTI, Nagios, and other local private monitoring tools. I had no problem to integrate these applications, except for Nagios (I don't have much experience with it).
What I want to know is if there is a way to use Nagios as a Web Service, or something similar, so I can expose some of the informations and use it to generate my own reports on my dashboard application.
Is it possible to do that without any epic effort?
thanks for reading.
Nagios 4.x starting with version 4.4 now includes CGIs for JSON output. Installing the newest version of Nagios might be the easiest way to go.
See the announcement here.
Review the slides from Nagios World Conference 2013 here.
The Check_MK Multisite GUI (Web base GUI using MK Livestatus) offers a web service mode, where you can send queries/commands as URL parameters and get the response as JSON in the body.
The trick is: Create a view in the GUI, which fits your needs. Then extract the URL of that view and add the parameter output_format=json. Now you should have the output in a parsable format.
For example, this URL should give you a JSON list of all services:
check_mk/view.py?view_name=allservices&output_format=json
You can try:
1) MK Livestatus http://mathias-kettner.de/checkmk_livestatus.html
it's not web service but it can give current data without any complicated action. All you need redirect this data.
2)status-json plugin http://exchange.nagios.org/directory/Addons/APIs/JSON/status-2Djson/details which return data in JSON format.
3)NagiosWS plugin but I wasn't able to get to work it yet. I think it can be done for Nagios 2.x
4)GroundWork Foundation plugin. I think I will try use it now.
I was able to get to work 1 and 2 solution now.
Otherwise you can use Icinga which can give you some JSON or XML output. Icinga is fork of Nagios and can be installed with saving all your nagios data and plugins. At least it written on Icinga's site =) They have some other solution like PHP lib.
Sorry, I cannot post only 2 link while I'm newbie on this site.
Best regards.
Worked for me - MK Livestatus http://mathias-kettner.de/checkmk_livestatus.html it's not web service but it can give current data without any complicated action. All you need redirect this data.