Step
Generate API Key
- Visit bing Index Now for Generating
Host your API key
Create a file in Directory of you website
will look like this
1
d06c191380a74c08a8ef46d9a32e3eec.txt
Update website after adding to root of directory
Send Request via C#
Requirement
- VS Code
- PolyGlot Notebook Extension
- .Net Sdk Installed
- if Not Please Follow Installtion step from here will Create Demo for that process.
Open VS Code
- Create New Folder
- Inside Folder Create two File
- data.txt
- bing.ipynb
- In data.txt File Fill all the URL in Follwing Fasion
Code in bing.ipynb
Make Sure You Selected .Net Interactive
Fill these data for Importing Library Fron Nuget Package
1
#r "nuget: Newtonsoft.Json, 13.0.3"
Click on Create next Cell
Importing relevant namespace which is used
|
|
- Creating class for passing credential
|
|
- Replace data.host value with your absolute website url
- Replace data.key value with your generated key
- data.keyLocation value with you generated value
|
|