This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Step-1: Add 'rss-parser' module as a dependency to package.json and import it inside RssReaderWebPart.ts file | |
import Parser from 'rss-parser'; | |
export default class RssReaderWebPart extends BaseClientSideWebPart<IRssReaderWebPartProps> { | |
// Step-2: Add a new private loadRSSFeedAsync() method inside RssReaderWebPart class of RssReaderWebPart.ts file | |
private loadRSSFeedAsync(): void { | |
(async (properties, domElement) => { | |
const parser = new Parser(); | |
// Note: some RSS feeds can't be loaded in the browser due to CORS security. | |
// To get around this, you can use a proxy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration Parameters (TODO: replace <token> placeholders with actual values before executing...) | |
$siteUrl = "https://<contoso>.sharepoint.com/sites/<contoso-electronics>" | |
$userName = "<adm-devang.bhavsar>@<contoso>.onmicrosoft.com" | |
$password = "<MySecretPassw0rd!>" | |
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force | |
$credentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $userName, $securePassword | |
# Establish connection with -ReturnConnection parameter | |
$connection = Connect-PnPOnline -Url $siteUrl -Credential $credentials -ReturnConnection |