Skip to content

Instantly share code, notes, and snippets.

POST /api/reports/v3/share HTTP/1.1
Authorization: OAuth xxxxxxxxxxx
Accept: application/xml
Host: secure.indicee.com
qname=...&groupId=3&scope=1
@IndiceeCoder
IndiceeCoder / reportv2deleterequest.xml
Created July 21, 2011 19:02
report v2 delete request
POST /api/reports/v3/delete HTTP/1.1
Authorization: OAuth xxxxxxxxxxx
Accept: application/xml
Host: secure.indicee.com
qname=iqn.2://indicee.com/1/0/report/b978aa53-...-8fea8eeb4a76
POST /api/reports/create HTTP/1.1
Authorization: OAuth xxxxxxxxxxx
Accept: application/xml
Host: secure.indicee.com
name=...&view=...
@IndiceeCoder
IndiceeCoder / reportv3listsharedreportsinagrouprequest.xml
Created July 21, 2011 18:53
report v3 list shared reports in a group
GET /api/reports/v3/groups/8/list HTTP/1.1
Authorization: OAuth xxxxxx
Accept: application/xml
Host: secure.indicee.com
@IndiceeCoder
IndiceeCoder / reportv3listownedreportsrequest.xml
Created July 21, 2011 18:46
report v2 list owned reports
GET /api/reports/v3/list HTTP/1.1
Authorization: OAuth xxxxxx
Accept: application/xml
Host: secure.indicee.com
GET /api/reports/v3?window=0,0,1000,1000&qname=iqn.2%3A%2F%2Findicee.com%2F405%2F0%2Freport%2F38b1ac19-5d04-4bc4-823c-b8700d0a852a HTTP/1.1
Authorization: OAuth xxxxxxxxxxx
Accept: application/xml
Host: secure.indicee.com
@IndiceeCoder
IndiceeCoder / currencyExample5.txt
Created July 19, 2011 23:20
iBIOS Customization Example - Currency Exchange 5
public last5MinConversion = cachedCurrencyConversion (60 * 5);
@IndiceeCoder
IndiceeCoder / currencyExample4
Created July 19, 2011 23:17
iBIOS Customization Example - Currency Exchange 4
/**
* Obtain a converted currency value, using a cached for exchange rates
* The cached value of the exchange rate is used (if available) so long as it is no older than ageSeconds
* @arg ageSeconds the maximum age of the cached value of the exchange rate that will be used in the conversion
* @arg fromCurrency the originating currency ISO 4217 trigraph abbreviation in any case (e.g. EUR, cad, usd, Gbp)
* @arg toCurrency the target currency ISO 4217 trigraph abbrebiation in any case (e.g. Eur, CAD, Usd, GBP)
* @arg amount the amount to convert, denominated in the originating currency unit
* @return the equivalent amount, denominated in the target currency unit
*/
cachedCurrencyConversion :: Double -> String -> String -> Double -> Double;
@IndiceeCoder
IndiceeCoder / currencyExample3.txt
Created July 19, 2011 23:17
iBIOS Customization Example - Currency Exchange 3
/**
* An efficient tuple of exchange rate and time
*/
data CachedConversion =
CachedConversion
rate :: !Double
time :: !Time
;
@IndiceeCoder
IndiceeCoder / currencyExchange2.txt
Created July 19, 2011 23:16
iBIOS Customization Example - Currency Exchange 2
/**
* Obtain the unit conversion between two currencies
*/
unitExchangeRate :: String -> String -> Double;
unitExchangeRate fromCurrency toCurrency =
exchangeRateConversion fromCurrency toCurrency 1.0;