Create a valid createDeepLinkingForm

ernestocamilo06
Community Member

How can I create an assignment with a createDeepLinkingForm to show in the editor an image and a text.?

 

 

 const items = [
      {
        type: "ltiResourceLink",
        text: inputName ? inputName : `Launch ${resourceName} in CloudApps`,
        title: element.name,
        custom: {
          collectionId: collection ? collection.id : "",
          imageId: collection ? collection.imageId : "",
          name: collection ? collection.name : "",
        },
        url: "https://k12-lti-3hzy2j3q2a-uc.a.run.app/api/lti/assignments",
        icon:{
          url: "https://storage.googleapis.com/k12-dev-assets-o15/logos/cloud-only-small.png",
          with: 100,
          height:100
        },
        thumbnail:{
          url: "https://storage.googleapis.com/k12-dev-assets-o15/logos/cloud-only-small.png",
          with: 200,
          height:200
        }
      }
    ];

    // Creates the deep linking request form
    const form = await lti.DeepLinking.createDeepLinkingForm(idToken, items, {
      message: "Successfully registered resource!",
    });

 

I tried with other configurations and got the same result. 

 

 

 

Labels (3)
0 Likes