diff --git a/common/src/itwin/cesiumCuratedContent.ts b/common/src/itwin/cesiumCuratedContent.ts
index 7e45768..4f4b086 100644
--- a/common/src/itwin/cesiumCuratedContent.ts
+++ b/common/src/itwin/cesiumCuratedContent.ts
@@ -3,14 +3,14 @@
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
-export async function getCuratedCesiumContent(iTwinId: string, imsPrefix: string, accessToken: string) {
+export async function getCuratedCesiumContent(imsPrefix: string, accessToken: string) {
const headers = {
"Authorization": accessToken,
"Accept": "application/vnd.bentley.itwin-platform.v1+json",
"Content-Type": "application/json"
};
- let url = `https://${imsPrefix}api.bentley.com/curated-content/cesium/?iTwinId=${iTwinId}`;
+ let url = `https://${imsPrefix}api.bentley.com/curated-content/cesium/`;
const response = await fetch(url, { headers });
const responseJson = await response.json();
@@ -18,14 +18,14 @@ export async function getCuratedCesiumContent(iTwinId: string, imsPrefix: string
return responseJson;
}
-export async function getCesiumCuratedContentTiles(contentId: string, iTwinId: string, imsPrefix: string, accessToken: string) {
+export async function getCesiumCuratedContentTiles(contentId: string, imsPrefix: string, accessToken: string) {
const headers = {
"Authorization": accessToken,
"Accept": "application/vnd.bentley.itwin-platform.v1+json",
"Content-Type": "application/json"
};
- let url = `https://${imsPrefix}api.bentley.com/curated-content/cesium/${contentId}/tiles?iTwinId=${iTwinId}`;
+ let url = `https://${imsPrefix}api.bentley.com/curated-content/cesium/${contentId}/tiles`;
const response = await fetch(url, { headers });
const responseJson = await response.json();
@@ -33,14 +33,14 @@ export async function getCesiumCuratedContentTiles(contentId: string, iTwinId: s
return { url: responseJson.url, accessToken: responseJson.accessToken, attributions: responseJson.attributions };
}
-export async function getCesiumMoonTerrianTiles(iTwinId: string, imsPrefix: string, accessToken: string) {
+export async function getCesiumMoonTerrianTiles(imsPrefix: string, accessToken: string) {
const headers = {
"Authorization": accessToken,
"Accept": "application/vnd.bentley.itwin-platform.v1+json",
"Content-Type": "application/json"
};
- let url = `https://${imsPrefix}api.bentley.com/curated-content/cesium/2684829/tiles?iTwinId=${iTwinId}`;
+ let url = `https://${imsPrefix}api.bentley.com/curated-content/cesium/2684829/tiles`;
const response = await fetch(url, { headers });
const responseJson = await response.json();
diff --git a/r3f-sample/.env.example b/r3f-sample/.env.example
index b9d383f..3f2ebc3 100644
--- a/r3f-sample/.env.example
+++ b/r3f-sample/.env.example
@@ -1,3 +1,2 @@
VITE_CLIENT_ID="**YOUR CLIENT ID**"
VITE_IMS_PREFIX =""
-VITE_ITWIN_ID="**OPTIONAL ITWIN ID**"
\ No newline at end of file
diff --git a/r3f-sample/README.md b/r3f-sample/README.md
index b00f573..e150227 100644
--- a/r3f-sample/README.md
+++ b/r3f-sample/README.md
@@ -10,9 +10,8 @@ In a .env file in the `r3f-sample` directory:
- `VITE_CLIENT_ID` - SPA Application Client ID needed to sign in with Bentley IMS (required)
- `VITE_IMS_PREFIX` - Bentley IMS authority prefix (optional)
-- `VITE_ITWIN_ID` - iTwin Id of an iTwin. You will need to have permission to read this iTwin (optional, if no Id is provided the user's primary account iTwin will be used)
-For an example of the `.env` file, an one has been provided [here](./.env.example)
+For an example of the `.env` file, one has been provided [here](./.env.example)
## Authentication
diff --git a/r3f-sample/src/globe.jsx b/r3f-sample/src/globe.jsx
index 227181b..e3d20a3 100644
--- a/r3f-sample/src/globe.jsx
+++ b/r3f-sample/src/globe.jsx
@@ -14,7 +14,7 @@ import { BentleyCesiumCuratedContentPlugin } from './plugins/BentleyCesiumCurate
import { Canvas } from '@react-three/fiber';
import { Environment } from '@react-three/drei';
-export function Globe ({ accessToken, itwinId, imsPrefix }) {
+export function Globe ({ accessToken, imsPrefix }) {
return (