iCloud.Dav.People
3.1.2
See the version list below for details.
dotnet add package iCloud.Dav.People --version 3.1.2
NuGet\Install-Package iCloud.Dav.People -Version 3.1.2
<PackageReference Include="iCloud.Dav.People" Version="3.1.2" />
paket add iCloud.Dav.People --version 3.1.2
#r "nuget: iCloud.Dav.People, 3.1.2"
// Install iCloud.Dav.People as a Cake Addin #addin nuget:?package=iCloud.Dav.People&version=3.1.2 // Install iCloud.Dav.People as a Cake Tool #tool nuget:?package=iCloud.Dav.People&version=3.1.2
iCloud.Dav.People
iCloud.Dav.People is a .NET library that allows you to interact with iCloud contacts and contact groups.
Installation
You can install iCloud.Dav.People via NuGet package manager or by downloading the source code and building it manually.
NuGet Installation
To install iCloud.Dav.People via NuGet, run the following command in the Package Manager Console:
Install-Package iCloud.Dav.People
Manual Installation
To manually install iCloud.Dav.People, follow these steps:
- Download the source code from this repository.
- Open the solution file (.sln) in Visual Studio.
- Build the solution.
Usage
To use iCloud.Dav.People in your .NET project, you need to add a reference to the iCloud.Dav.People assembly. You can do this either by adding a reference to the respective NuGet package or by referencing the assembly directly.
Here are examples of how to use iCloud.Dav.People:
Authentication
For seamless authentication with iCloud.Dav.People, refer to the iCloud.Dav.Auth module.
Get Resource Name
using iCloud.Dav.People.DataTypes;
using iCloud.Dav.People.Services;
using System.Linq;
PeopleService peopleService = new PeopleService(initializer);
IdentityCardList identityCardList = peopleService.IdentityCard.List().Execute();
IdentityCard identityCard = identityCardList.Items.First();
string resourceName = identityCard.ResourceName;
Get Contacts
using iCloud.Dav.People.DataTypes;
using iCloud.Dav.People.Services;
PeopleService peopleService = new PeopleService(initializer);
ContactList contactList = peopleService.People.List(resourceName).Execute();
Get Contact Groups
using iCloud.Dav.People.DataTypes;
using iCloud.Dav.People.Services;
PeopleService peopleService = new PeopleService(initializer);
ContactGroupList contactGroupList = peopleService.ContactGroups.List(resourceName).Execute();
Get File
using iCloud.Dav.People.Services;
using System;
CloudGatewayService cloudGatewayService = new CloudGatewayService(initializer);
byte[] data = cloudGatewayService.CloudGateway.Get(new Uri("file_url")).Execute();
Get Next SyncToken
using iCloud.Dav.People.DataTypes;
using iCloud.Dav.People.Services;
PeopleService peopleService = new PeopleService(initializer);
SyncToken syncToken = peopleService.IdentityCard.GetSyncToken(resourceName).Execute();
Sync Collection
using iCloud.Dav.People.DataTypes;
using iCloud.Dav.People.Services;
using iCloud.Dav.People.Resources;
PeopleService peopleService = new PeopleService(initializer);
IdentityCardResource.SyncCollectionRequest syncCollectionRequest = peopleService.IdentityCard.SyncCollection(resourceName);
syncCollectionRequest.SyncToken = syncToken.NextSyncToken;
SyncCollectionList syncCollectionList = syncCollectionRequest.Execute();
Contributing
Contributions to iCloud.Dav are welcome! If you want to contribute to the project, please fork the repository and create a pull request with your changes.
License
iCloud.Dav is licensed under the MIT license. See the License file for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- iCloud.Dav.Auth (>= 3.1.2)
- vCard.Net (>= 1.0.2)
-
.NETStandard 2.1
- iCloud.Dav.Auth (>= 3.1.2)
- vCard.Net (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.