Skip to content

Instantly share code, notes, and snippets.

View phawrylak's full-sized avatar

Paweł Hawrylak phawrylak

View GitHub Profile
@phawrylak
phawrylak / ThumbnailService.ts
Created March 1, 2018 15:21
Example of getting OneDrive thumbnail URL for SharePoint List Item using method from modern list tile view
import { Web } from "sp-pnp-js";
export default class ThumbnailService {
public async getThumbnailUrl(
webUrl: string,
listId: string,
listItemId: number,
width: number,
height: number
): Promise<string> {