# SpecIntel / Procore Integration Documentation
## Application Diagram

## Authorization
In order to request data from Procore the request should be authorized by user. To do so SpecIntel team need to obtain OAuth Access Token. To get it:
* Open in browser link https://login-sandbox.procore.com/oauth/authorize?response_type=code&client_id=921ec00917153f5f2707213e87a02b9fae22d65fad4fc9d8fa0afbe4db3f52f7&redirect_uri=http://localhost
* You will be asked to sing in. Sing in using following credentials
```
login: chivery_sz@yahoo.com
Password: ******
```
* You will be redirected to link like this http://localhost/?code=89420dcb0ca3c51b8f2e93b12156d93dbc5f81fe5584117b2edd440af872ba89
Instead of `localhost` you will need to replace it with https://www.spec-intel.com page that handle `code` parameter.
Then we need to save this code in SpecIntel Integration Service, to do that execute method [Authorize user using Procore OAuth](https://documenter.getpostman.com/view/7117885/2s83zdvRaq#dbe90d61-3228-4046-ae41-b838c3071ec4)
## UI Flow

## Dev Environment
* [Swagger](http://www.promatsolutions.com:88/swagger/index.html)
* Application: http://www.promatsolutions.com:88
## Postman Documentaion
[Postman Documentation](https://documenter.getpostman.com/view/7117885/2s83zdvRaq#dbe90d61-3228-4046-ae41-b838c3071ec4)
## Application Documentation
* [Source Code](https://github.com/ConsiderItDone/specintel-procore)
* [How to run Application](https://github.com/ConsiderItDone/specintel-procore#getting-started-with-specintel-procore)
###### tags: SpecIntel