Git Product home page Git Product logo

gettyimages-api_dotnet's People

Contributors

caseymacpherson avatar chrissimmons avatar cleankode avatar inrix-olia-gavrysh avatar jdot-santos avatar jgreywolf avatar jphillips-gettyimages avatar mapitman avatar ssterli2 avatar stevekenzell avatar xanbuck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gettyimages-api_dotnet's Issues

Parsing the value Orientation for Image metadata throws an error

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
  }
}

The GettyImages.Api assembly in the nuget package is not Strong-Name signed

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,

  • Will need a generated SNK (Strong Name Key)
  • Add the SNK as a GitHub action secret
  • In the build.yml workflow, need to save the secret to the SNK file
  • Use the SNK file to sign the assembly in the build process

Can send PR if someone can generate and add the SNK as a GitHub action secret

Looking for a method to get image by Asset ID

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.

Uploading files

Hello!
Is there any tool for uploading files?(for contributors)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.