Data type of gradient is changed from int64 to string. But i tried to log few different instagram accounts and this again got error: json: cannot unmarshal string into Go struct field Nametag.gradient of type string. Here is the response from account which has value of 0 for gradient which is of type int.
{
"nametag": {
"mode": 0,
"gradient": 0,
"emoji": "\ud83d\ude00",
"selfie_sticker": 0
}
}
But here is the account which has value of 1 for gradient which is of type string.
{
"nametag": {
"mode": 0,
"gradient": "1",
"emoji": "\ud83d\ude00",
"selfie_sticker": "0"
}
}
I have used your library for this testing. As far as i can see the only solution is to force json to convert gradient value always to type string.
According to this update: https://github.com/ahmdrz/goinsta/commit/da569229586ada7f4595f5c39c800933a6a48c84
Data type of gradient is changed from int64 to string. But i tried to log few different instagram accounts and this again got error: json: cannot unmarshal string into Go struct field Nametag.gradient of type string. Here is the response from account which has value of 0 for gradient which is of type int. { "nametag": { "mode": 0, "gradient": 0, "emoji": "\ud83d\ude00", "selfie_sticker": 0 } }
But here is the account which has value of 1 for gradient which is of type string. { "nametag": { "mode": 0, "gradient": "1", "emoji": "\ud83d\ude00", "selfie_sticker": "0" } }
I have used your library for this testing. As far as i can see the only solution is to force json to convert gradient value always to type string.