Skip to content

Commit 4b581ff

Browse files
authored
Update README.md
1 parent 6ea2cf6 commit 4b581ff

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
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.

0 commit comments

Comments
 (0)