OneDrive Data Source
Configuring SearchBlox
Before using OneDrive Data Source, install SearchBlox successfully and create a Custom Collection.
![custom.png 1036](https://files.readme.io/35aaf2c-custom.png)
**Configure Onedrive Application
- open following url in browser
https://apps.dev.microsoft.com/?referrer=https%3A%2F%2Fdev.onedrive.com
Login using user credentials
![onedrive1.png 741](https://files.readme.io/ea5b707-onedrive1.png)
- Click on Add an app after successful login
![onedrive2.png 743](https://files.readme.io/da4c079-onedrive2.png)
- Specify application name and click on create
![onedrive3.png 736](https://files.readme.io/f4ed493-onedrive3.png)
- Note down application ID
![onedrive4.png 784](https://files.readme.io/398c5b5-onedrive4.png)
- click on add platform
![onedrive5.png 768](https://files.readme.io/dcdfed5-onedrive5.png)
- Click on WEB
![onedrive6.png 742](https://files.readme.io/33f8236-onedrive6.png)
- Specify redirect URL and click on save
![onedrive7.png 738](https://files.readme.io/49d73aa-onedrive7.png)
OneDrive Data Source
- Download the SearchBlox Connector UI. Extract the downloaded zip to a folder.
Contact support@searchblox.com to request the download link for SearchBlox Connectors UI. The following steps include the example paths for both Windows as well as Linux. In Windows, the connector would be installed in the C drive.
- Unzip the archive under C:* or /opt*.
- Create a data folder on your drive where the files would be temporarily stored.
- Configure the following properties once you create a data source in the connector UI.
data-directory | Data Folder where the data needs to be stored. Make sure it has write permission. |
api-key | SearchBlox API Key |
colname | The name of the custom collection in SearchBlox. |
url | SearchBlox URL |
exclude-folders | Folders to exclude in OneDrive. |
log-file-maxSize,log-file-maxBackups,log-file-maxAge | megabytes after which new file is created number of backups after which log file should be deleted Number of days after which log files should be deleted |
servlet url & delete-api-url: | Make sure that the port number is right. If your SearchBlox runs in 8080 port the URLs should be right. |
authURL | OneDrive authorization url default: https://login.live.com/oauth20_authorize.srf |
tokenURL | OneDrive api token url default: https://login.live.com/oauth20_token.srf |
redirectUrl | OneDrive redirect uri to redirect back to Goconnector. Please be careful about port when specifying, it should not be same as SearchBlox port. |
clientId | OneDrive app client id |
clientSecret | OneDrive app client secret |
port | OneDrive GOconnector port, should have the same port number given in redirect url |
api_url | OneDrive API url default: https://api.onedrive.com/v1.0/ |
Updated almost 4 years ago