Skip to content

Commit ac6be59

Browse files
committed
2 parents e16e3af + 234fd57 commit ac6be59

3 files changed

Lines changed: 65 additions & 2 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup .NET
1717
uses: actions/setup-dotnet@v2
1818
with:
19-
dotnet-version: 5.0.x
19+
dotnet-version: 6.0.x
2020
- name: Restore dependencies
2121
run: dotnet restore
2222
- name: Build

License

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 CodeBeam
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
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/codebeamorg/codebeam.googleapis.blazor)
6+
[![Contributors](https://img.shields.io/github/contributors/codebeamorg/codebeam.googleapis.blazor?color=594ae2&style=flat-square&logo=github)](https://github.com/codebeamorg/codebeam.googleapis.blazor/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/codebeam.googleapis.blazor/)
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/codebeam.googleapis.blazor/)
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+
### Preliminary: Set your google account and your project credentials
22+
Nothing special with this package.
23+
### Step 1: Inject HttpClientFactory
24+
25+
For blazor component files
26+
```razor
27+
@inject IHttpClientFactory HttpClientFactory
28+
```
29+
For cs files
30+
```cs
31+
[Inject] IHttpClientFactory HttpClientFactory { get; set; }
32+
```
33+
34+
### Step 2: Create an instance of needed api class and implement
35+
```cs
36+
private void NewCalendar()
37+
{
38+
CalendarService calendarService = new CalendarService(HttpClientFactory);
39+
calendarService.AddCalendar(_accessToken, "Calendar Title"); //Can get access token with AuthService.
40+
}
41+
```
42+
43+
### Step 3: null. That's all.

0 commit comments

Comments
 (0)