Remote Web

The SP.RemoteWeb REST API endpoint is used to return the web information.

Properties

  • requestUrl - The absolute url of the remote web.

IRemoteWeb

Property Type
CanSendEmail boolean
ShareByEmailEnabled boolean
ShareByLinkEnabled boolean
Web IWebProps

Code Example

// JavaScript
var $REST = require("gd-sprest");
$REST.RemoteWeb("https://[tenant].sharepoint.com/sites/dev").execute(function(web) {
    // See if the web exists
    if(web.Web) {
    }
});

// TypeScript
import { Web } from "gd-sprest";

Web.getRemoteWeb("https://[tenant].sharepoint.com/sites/dev").execute(web => {
    // See if the web exists
    if(web.Web) {
    }
});