Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit 2c0814e

Browse files
author
nkolba
committedMar 13, 2018
updated according to changes in app directory
1 parent a7d54ec commit 2c0814e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 

‎demo/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ <h1>Financial App Directory</h1>
1717
<h2>Contextual Link Examples</h2>
1818
<ul>
1919

20-
<li class="open-link">fdc3.open("chart-iq-new","show",{object:"fdc3-context",data:[{name:"Microsoft",type:"instrument",id:{ticker:"msft"} } ] })</li>
21-
<li class="open-link">fdc3.open("chart-iq-new","show",{object:"fdc3-context",data:[{name:"IBM",type:"instrument",id:{ticker:"ibm"} } ] })</li>
22-
<li class="open-link">fdc3.open("chart-iq-new","show",{object:"fdc3-context",data:[{name:"Exxon",type:"instrument",id:{ticker:"xom"} } ] })</li>
23-
<li class="open-link">fdc3.open("chart-iq-new","show",{object:"fdc3-context",data:[{name:"Alphabet",type:"instrument",id:{ticker:"goog"} } ] })</li>
20+
<li class="open-link">fdc3.open("chart-iq","viewChart",{object:"fdc3-context",data:[{name:"Microsoft",type:"instrument",id:{ticker:"msft"} } ] })</li>
21+
<li class="open-link">fdc3.open("chart-iq","viewChart",{object:"fdc3-context",data:[{name:"IBM",type:"instrument",id:{ticker:"ibm"} } ] })</li>
22+
<li class="open-link">fdc3.open("chart-iq","viewChart",{object:"fdc3-context",data:[{name:"Exxon",type:"instrument",id:{ticker:"xom"} } ] })</li>
23+
<li class="open-link">fdc3.open("chart-iq","viewChart",{object:"fdc3-context",data:[{name:"Alphabet",type:"instrument",id:{ticker:"goog"} } ] })</li>
2424
</ul>
2525

2626
<h2>All Chart.Show Intent Apps</h2>

‎index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
try {
1111
const headers = new Headers();
1212
const response = await fetchJson(
13-
`https://open-app-directory.openfin.co/api/v1/apps/${name}`,
13+
`https://app-directory.openfin.co/api/v1/apps/${name}`,
1414
"GET",
1515
headers
1616
);

‎plugin/main.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fin.desktop.main(function() {
1313
let response = [];
1414

1515
fetchJson(
16-
"https://open-app-directory.openfin.co/api/v1/apps",
16+
"https://app-directory.openfin.co/api/v1/apps",
1717
"GET",
1818
headers
1919
).then(r => {
@@ -42,7 +42,7 @@ fin.desktop.main(function() {
4242
fdc3.open = async function(name, int, ctx) {
4343
try {
4444
let response = await fetchJson(
45-
`https://open-app-directory.openfin.co/api/v1/apps/${name}`,
45+
`https://app-directory.openfin.co/api/v1/apps/${name}`,
4646
"GET",
4747
headers
4848
);
@@ -53,7 +53,7 @@ fin.desktop.main(function() {
5353
let intent = typeof(ctx) === "undefined" ? null : int;
5454
let context = intent ? ctx : int;
5555

56-
let url = (response.app_config.replace("https://","fins://").replace("http://","fin://"));
56+
let url = (response.manifest_url.replace("https://","fins://").replace("http://","fin://"));
5757
if (intent){
5858
url = url + "?$$intent=" + intent;
5959
}

‎plugin/open.zip

2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
This repository has been archived.