GettyImages.Api
4.0.2
Allows easy integration with the Getty Images API.
See the version list below for details.
Install-Package GettyImages.Api -Version 4.0.2
dotnet add 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"
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/
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/
Dependencies
-
.NETStandard 2.0
- Newtonsoft.Json (>= 10.0.3)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
5.0.0 | 6,006 | 12/10/2019 |
4.10.0 | 3,222 | 10/21/2019 |
4.9.0 | 167 | 9/24/2019 |
4.8.0 | 2,679 | 8/1/2019 |
4.7.1 | 1,189 | 4/18/2019 |
4.6.2 | 1,356 | 1/3/2019 |
4.6.1 | 307 | 12/14/2018 |
4.6.0 | 340 | 12/13/2018 |
4.5.0 | 412 | 10/23/2018 |
4.4.1 | 596 | 10/2/2018 |
4.4.0 | 528 | 6/18/2018 |
4.3.0 | 453 | 6/15/2018 |
4.2.0 | 461 | 6/11/2018 |
4.1.0 | 454 | 5/24/2018 |
4.0.3 | 528 | 3/12/2018 |
4.0.2 | 548 | 2/23/2018 |
4.0.0 | 504 | 2/16/2018 |
3.0.0 | 2,857 | 10/13/2016 |
2.4.0.5 | 780 | 7/15/2016 |
2.4.0.4 | 644 | 7/15/2016 |
2.4.0.3 | 559 | 5/19/2016 |
2.4.0.2 | 584 | 3/31/2016 |
2.4.0.1 | 540 | 3/30/2016 |
2.3.0.46 | 739 | 1/6/2016 |
2.2.1.40 | 3,684 | 9/16/2015 |
2.2.1.39 | 605 | 9/1/2015 |
2.2.0 | 764 | 5/8/2015 |
2.1.0 | 643 | 5/6/2015 |
2.0.0 | 555 | 4/29/2015 |