gettyimages / gettyimages-api_dotnet Goto Github PK
View Code? Open in Web Editor NEWGetty Images API SDK - .NET
License: MIT License
Getty Images API SDK - .NET
License: MIT License
SDK Request:
var imageMetadata = await client.Images().WithId("someId").ExecuteAsync();
Json Response:
{
"images": [
{
"...":"..."
"orientation": "PanoramicHorizontal",
}
],
"images_not_found": []
}
Trying to parse the EnumValue PanoramicHorizontal throws an error as the enum doesn't contain this value
'The JSON value could not be converted to GettyImages.Api.Models.OrientationImages. Path: $.images[0].orientation | LineNumber: 0 | BytePositionInLine: 6478.'
namespace GettyImages.Api.Models
{
[Flags]
public enum OrientationImages
{
None = 0,
Horizontal = 1,
Panoramic_Horizontal = 2,
Panoramic_Vertical = 4,
Square = 8,
Vertical = 16, // 0x00000010
}
}
Our project requires the assemblies to have Strong-Name Signing, we will hit this error when compiling the project using GettyImages.API 8.0.0
CSC : error CS8002: Referenced assembly 'GettyImages.Api, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name.
For more information about the Strong-Name Signing, see
To resolve this is quite simple,
Can send PR if someone can generate and add the SNK as a GitHub action secret
Hi team. Is there a method where you can retrieve image by Asset ID. I can’t seem to find it. I've been using the Getty API for many years, but I just stumbled on this new version of API and haven't been able to find that. My old way of getting the data still works, but I thought I’d ask if you do have a method like this that I just missed. Thanks.
Hello!
Is there any tool for uploading files?(for contributors)
gettyimages-api_dotnet/GettyImages.Api/Credentials.cs
Lines 133 to 134 in 6ce17a1
This will return an expired token in some case, such as Now is 12:05PM but the token expired at 12:03PM
, could be
(_accessToken != null &&
_accessToken.Expiration >= DateTime.UtcNow.AddMinutes(5)))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.