This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Perform a currency conversion | |
* If an error occurs a NaN is returned | |
*/ | |
exchangeRateConversion :: String -> String -> Double -> Double; | |
exchangeRateConversion fromCurrency toCurrency amount = | |
let | |
response = getMethod ("http://www.exchangerate-api.com/" ++ fromCurrency ++ "/" ++ toCurrency ++ "/" ++ (doubleToString amount) ++ "?k=yu9Nt-z826L-W4QHk"); | |
in | |
case response of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.indicee.api.examples; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URLEncoder; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.net.ssl.SSLContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
<script type="text/javascript" src="<server>/indicee_report_gconnector.js"></script> | |
<script type="text/javascript"> | |
google.load('visualization', '1', {'packages':['columnChart']}); | |
google.setOnLoadCallback(refreshChart); | |
function refreshChart() { | |
indicee.report.googleConnector.getDataTable("<server>/api/report/show.json?report_id=<id>", drawChart); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.indicee.api.examples; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.security.NoSuchAlgorithmException; | |
import javax.net.ssl.SSLContext; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.transform.OutputKeys; | |
import javax.xml.transform.Result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.indicee.api.examples; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.security.NoSuchAlgorithmException; | |
import javax.net.ssl.SSLContext; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.transform.OutputKeys; | |
import javax.xml.transform.Result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import oauth.signpost.basic.DefaultOAuthConsumer; | |
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.conn.ssl.SSLSocketFactory; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
public class ListReports { | |
private static CommonsHttpOAuthConsumer commonsHttpConsumer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2010- Indicee Inc. All Rights Reserved. | |
* | |
* Indicee, Inc. | |
* #2200-1050 West Pender Street | |
* Vancouver, BC, V6E 3S7, Canada | |
* 1-888-681 3840 | |
* | |
* IMPORTANT: This Indicee software is supplied to you by Indicee, Inc. ("Indicee") in | |
* consideration of your agreement to the following terms, and your use, installation, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2010- Indicee Inc. All Rights Reserved. | |
* | |
* Indicee, Inc. | |
* #2200-1050 West Pender Street | |
* Vancouver, BC, V6E 3S7, Canada | |
* 1-888-681 3840 | |
* | |
* IMPORTANT: This Indicee software is supplied to you by Indicee, Inc. ("Indicee") in | |
* consideration of your agreement to the following terms, and your use, installation, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.indicee.api.examples; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.security.NoSuchAlgorithmException; | |
import javax.net.ssl.SSLContext; | |
import javax.xml.parsers.DocumentBuilderFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.indicee.api.examples; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.security.NoSuchAlgorithmException; | |
import javax.net.ssl.SSLContext; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.transform.OutputKeys; | |
import javax.xml.transform.Result; |