KredAPI

FREEMIUM
Par kred | Mise à jour 1ヶ月前 | Social
Health Check

N/A

Retour à toutes les discussions

Stange JSON Structure being returned...

Rapid account: Stefanom 80
stefanom80
7年前

Hi We are trying to use this API:

https://kred-exp-v2.p.mashape.com/kred/score/{source}/{username}

However we are 2 having issues with following fields in JSON:
Influence
Outreach

The issues we are having is:

  1. The name and length of each of the 2 objects above vary from call to call hence we are not able to map it to a JSON object class in C#. i.e. you make a call for 1 person and you get 10 different fields then you make a call for another person and you get 30 fields.
  2. The ones that we have mapped manually have issues with illegal characters found in the field names.

Below is a sample from the Influence class:

public class Influence
{
public int San_Francisco { get; set; }
public int __invalid_name__54th_Grammy_Bloggers { get; set; }
public int Religion { get; set; }
public int __invalid_name__18to24 { get; set; }
public int Real_Estate { get; set; }
public int Celebrities_Speak { get; set; }
public int Comedy { get; set; }

Please advise.

Kind regards

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires