GettyImages.Api 4.0.2

There is a newer version of this package available.
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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GettyImages.Api" Version="4.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GettyImages.Api --version 4.0.2
#r "nuget: GettyImages.Api, 4.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

build status

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: Add nuget package reference

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
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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.5 87 3/19/2024
8.1.4 85 3/19/2024
8.1.3 11,729 5/16/2023
8.1.2 533 3/24/2023
8.0.2 10,302 10/6/2022
8.0.1 481 9/7/2022
8.0.0 1,204 5/31/2022
7.0.0 498 5/5/2022
6.0.1 715 4/8/2022
6.0.0 618 3/31/2022
5.1.0 8,551 6/30/2021
5.0.1 422 6/21/2021
5.0.0 15,329 12/10/2019
4.10.0 4,315 10/21/2019
4.9.0 616 9/24/2019
4.8.0 3,400 8/1/2019
4.7.1 1,635 4/18/2019
4.6.2 1,763 1/3/2019
4.6.1 701 12/14/2018
4.6.0 762 12/13/2018
4.5.0 843 10/23/2018
4.4.1 1,092 10/2/2018
4.4.0 1,036 6/18/2018
4.3.0 968 6/15/2018
4.2.0 987 6/11/2018
4.1.0 1,003 5/24/2018
4.0.3 1,084 3/12/2018
4.0.2 1,080 2/23/2018
4.0.0 1,046 2/16/2018
3.0.0 4,942 10/13/2016
2.4.0.5 1,337 7/15/2016
2.4.0.4 1,171 7/15/2016
2.4.0.3 1,064 5/19/2016
2.4.0.2 1,088 3/31/2016
2.4.0.1 1,047 3/30/2016
2.3.0.46 1,231 1/6/2016
2.2.1.40 4,213 9/16/2015
2.2.1.39 1,139 9/1/2015
2.2.0 1,329 5/8/2015
2.1.0 1,238 5/6/2015
2.0.0 1,182 4/29/2015