2018-02-26 03:14:30 -05:00
# Consuming Third Party APIs secured with Azure Active Directory within SharePoint Framework
## Summary
2020-04-04 02:18:47 -04:00
This sub folder contains a client-side project that shows how to consume a 3rd party API within SharePoint Framework.
2018-02-26 03:14:30 -05:00
![The UI of the sample application ](images/react-3rd-party-api-ui-sample.gif )
In subfolder _Server-API_ you can find the sample REST API built using ASP.NET MVC.
2020-04-04 02:18:47 -04:00
You will need to publish the web application on a hosting environment (for example an Azure App Service), configure CORS, and configure the application in the Azure AD tenant under the cover of your target SharePoint Online tenant.
2018-02-26 03:14:30 -05:00
2023-02-18 22:58:44 -05:00
## Contributors
2018-02-26 03:14:30 -05:00
2023-03-15 00:11:27 -04:00
* [Paolo Pialorsi ](https://github.com/PaoloPia )
2018-02-26 03:14:30 -05:00
## Version history
| Version | Date | Comments |
| ------------- | ------------- | ------------- |
| 1.0.0 | February 19th 2018 | Initial release |
## Build and run the sample
To build and run this client-side project, you will need to clone and build the tutorials project.
Clone this repo by executing the following command in your console:
```
2021-05-02 15:04:59 -04:00
git clone https://github.com/pnp/sp-dev-fx-webparts.git
2018-02-26 03:14:30 -05:00
```
Navigate to the cloned repo folder which should be the same as the repo name:
```
cd sp-dev-fx-webparts
```
Navigate to the `tutorials` folder:
```
cd tutorials
```
Navigate to the `specific web part` folder:
```
cd 'subfolder'
```
Now run the following command to install the npm packages:
```
npm install
```
2020-04-04 02:18:47 -04:00
This will install the required npm packages and dependencies to build and run the client-side project.
2018-02-26 03:14:30 -05:00
Once the npm packages are installed, run the command to preview your web parts in SharePoint Workbench:
```
gulp serve
```
2023-03-15 00:11:27 -04:00
2021-11-07 01:41:41 -05:00
## Disclaimer
**THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
----------
2023-03-12 21:16:15 -04:00
< img src = "https://m365-visitor-stats.azurewebsites.net/sp-dev-fx-webparts/react-3rd-party-api" / >