Created
November 12, 2018 09:19
-
-
Save AsishP/44fd2671826b556f467b4bc1d19cc670 to your computer and use it in GitHub Desktop.
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
// Do a REST Query to get data from REST using spHttpClient | |
public componentWillMount() | |
{ | |
const items: any = await this.props.context.spHttpClient.get(restApi, SPHttpClient.configurations.v1, { | |
headers: { | |
'Accept': 'application/json;odata.metadata=none' | |
} | |
}).then(resp => resp.json()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment