File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- GoogleApis.Blazor
1+ # CodeBeam.GoogleApis.Blazor
2+ ## An open-source utility package for GoogleApis in Blazor.
3+ ## Always aim for the easiest to use.
4+ [ ![ GitHub Repo stars] ( https://img.shields.io/github/stars/codebeamorg/codebeam.googleapis.blazor?color=594ae2&style=flat-square&logo=github )] ( https://github.com/codebeamorg/codebeam.googleapis.blazor/stargazers )
5+ [ ![ GitHub last commit] ( https://img.shields.io/github/last-commit/codebeamorg/codebeam.googleapis.blazor?color=594ae2&style=flat-square&logo=github )] ( https://github.com/mudblazor/mudblazor )
6+ [ ![ Contributors] ( https://img.shields.io/github/contributors/codebeamorg/codebeam.googleapis.blazor?color=594ae2&style=flat-square&logo=github )] ( https://github.com/mudblazor/mudblazor/graphs/contributors )
7+ [ ![ Nuget version] ( https://img.shields.io/nuget/v/CodeBeam.GoogleApis.Blazor?color=ff4081&label=nuget%20version&logo=nuget&style=flat-square )] ( https://www.nuget.org/packages/MudBlazor/ )
8+ [ ![ Nuget downloads] ( https://img.shields.io/nuget/dt/CodeBeam.GoogleApis.Blazor?color=ff4081&label=nuget%20downloads&logo=nuget&style=flat-square )] ( https://www.nuget.org/packages/MudBlazor/ )
9+
10+ This repo is still in earlier stage of development, but all completed parts already tested with real world applications.
11+
12+ ## Documentation
13+ Prepairing.
14+
15+
16+ ## Contributing
17+ Welcome to all contributors!
18+
19+
20+ ## Usage
21+ ### Step 1: Inject HttpClientFactory
22+
23+ For blazor component files
24+ ``` razor
25+ @inject IHttpClientFactory HttpClientFactory
26+ ```
27+ For cs files
28+ ``` cs
29+ [Inject ] IHttpClientFactory HttpClientFactory { get ; set ; }
30+ ```
31+
32+ ### Step 2: Create an instance of needed api class and implement
33+ ``` cs
34+ private void NewCalendar ()
35+ {
36+ CalendarService calendarService = new CalendarService (HttpClientFactory );
37+ calendarService .AddCalendar (_accessToken , " Calendar Title" ); // Can get access token with AuthService.
38+ }
39+ ```
40+
41+ ### Step 3: null. That's all.
You can’t perform that action at this time.
0 commit comments