GettyImages.Api
4.0.2
See the version list below for details.
dotnet add package GettyImages.Api --version 4.0.2
NuGet\Install-Package GettyImages.Api -Version 4.0.2
<PackageReference Include="GettyImages.Api" Version="4.0.2" />
paket add GettyImages.Api --version 4.0.2
#r "nuget: GettyImages.Api, 4.0.2"
// Install GettyImages.Api as a Cake Addin #addin nuget:?package=GettyImages.Api&version=4.0.2 // Install GettyImages.Api as a Cake Tool #tool nuget:?package=GettyImages.Api&version=4.0.2
Getty Images API SDK - .NET
Introduction
This SDK makes using the Getty Images API easy. It handles credential management, makes HTTP requests and is written with a fluent style in mind. The API Documentation is located on Github.
Getting started
Using the Nuget Package
The SDK is published to the public Nuget package repository.
Open the package manager and add the package to your project:
Usage
The SDK currently supports:
- Artists
- Asset changes
- Asset registration
- Boards
- Collections
- Countries
- Downloads
- Events
- Images
- Products
- Purchases
- Search
- Usage
- Videos
Note; if you are using the SDK in MVC, be sure to use the async keyword on your controller's action method.
Code
The SDK supports async operations, however it can also be used synchonously, such as when running in a console application:
var client = ApiClient.GetApiClientWithClientCredentials("my_api_key", "my_api_secret");
var searchResult = client.SearchImagesEditorial()
.WithEditorialSegment(EditorialSegment.News)
.WithPhrase("all vocabulary")
.WithSortOrder(SortOrder.Newest)
.ExecuteAsync()
.Result;
foreach (var image in searchResult.images)
{
Console.WriteLine("Title: {0} \r\nId: {1}", image.title, image.id);
}
Results are returned as dynamic
. Visit the API Interactive Documentation to learn more about available parameters and to see what the response object look like.
Building From Source Code
This is only necessary if you would like to contribute to the project. Otherwise, use the Nuget Package
Assumptions
- You have .NET Core 2.0 or later installed
- You have Git installed
Clone the repository
The Git repository contains a submodule which requires some special handling to get setup properly. This is because we share our scenario files across all our SDKs.
Open a console window (Command Prompt, PowerShell or Bash) and issue the following commands to clone the Git repository:
git clone git@github.com:gettyimages/gettyimages-api_dotnet.git
cd gettyimages-api_dotnet
Build
dotnet restore
dotnet build
dotnet test UnitTests/
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 was computed. |
.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
- Newtonsoft.Json (>= 10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.2.2 | 118 | 7/9/2024 |
8.2.1 | 763 | 4/22/2024 |
8.1.5 | 155 | 3/19/2024 |
8.1.4 | 124 | 3/19/2024 |
8.1.3 | 26,267 | 5/16/2023 |
8.1.2 | 570 | 3/24/2023 |
8.0.2 | 14,274 | 10/6/2022 |
8.0.1 | 513 | 9/7/2022 |
8.0.0 | 1,242 | 5/31/2022 |
7.0.0 | 531 | 5/5/2022 |
6.0.1 | 972 | 4/8/2022 |
6.0.0 | 651 | 3/31/2022 |
5.1.0 | 10,255 | 6/30/2021 |
5.0.1 | 447 | 6/21/2021 |
5.0.0 | 15,400 | 12/10/2019 |
4.10.0 | 4,349 | 10/21/2019 |
4.9.0 | 638 | 9/24/2019 |
4.8.0 | 3,442 | 8/1/2019 |
4.7.1 | 1,658 | 4/18/2019 |
4.6.2 | 1,788 | 1/3/2019 |
4.6.1 | 735 | 12/14/2018 |
4.6.0 | 790 | 12/13/2018 |
4.5.0 | 871 | 10/23/2018 |
4.4.1 | 1,130 | 10/2/2018 |
4.4.0 | 1,061 | 6/18/2018 |
4.3.0 | 992 | 6/15/2018 |
4.2.0 | 1,016 | 6/11/2018 |
4.1.0 | 1,033 | 5/24/2018 |
4.0.3 | 1,108 | 3/12/2018 |
4.0.2 | 1,111 | 2/23/2018 |
4.0.0 | 1,070 | 2/16/2018 |
3.0.0 | 6,292 | 10/13/2016 |
2.4.0.5 | 1,369 | 7/15/2016 |
2.4.0.4 | 1,193 | 7/15/2016 |
2.4.0.3 | 1,089 | 5/19/2016 |
2.4.0.2 | 1,111 | 3/31/2016 |
2.4.0.1 | 1,079 | 3/30/2016 |
2.3.0.46 | 1,259 | 1/6/2016 |
2.2.1.40 | 4,243 | 9/16/2015 |
2.2.1.39 | 1,167 | 9/1/2015 |
2.2.0 | 1,366 | 5/8/2015 |
2.1.0 | 1,274 | 5/6/2015 |
2.0.0 | 1,215 | 4/29/2015 |