Git Product home page Git Product logo

Comments (8)

philipithomas avatar philipithomas commented on June 26, 2024

Github ID appears to be an integer from your API, but it is a string in the user struct

from clearbit-go.

philipithomas avatar philipithomas commented on June 26, 2024

Oddly, the user twitter ID is an integer, and the company twitter ID is a string. That doesn't make sense @maccman :-P

from clearbit-go.

harlow avatar harlow commented on June 26, 2024

@philipithomas nice catch. Agree those should def be consistent.

The integer representation of the unique identifier for this Tweet. This number is greater than 53 bits and some programming languages may have difficulty/silent defects in interpreting it. Using a signed 64 bit integer for storing this identifier is safe. Use id_str for fetching the identifier to stay on the safe side. See Twitter IDs, JSON and Snowflake .

from clearbit-go.

maccman avatar maccman commented on June 26, 2024

Oops - should def be using strings for both.

from clearbit-go.

philipithomas avatar philipithomas commented on June 26, 2024

For the future, the is the best way I've seen for turning JSON into Go structs:

https://mholt.github.io/json-to-go/

from clearbit-go.

philipithomas avatar philipithomas commented on June 26, 2024

Might be good to set up some basic integration testing on this library because Go is tricky with JSON integrations. Basically, have it query API and assert no error. It would be best to run this daily or so (which TravisCI could do)

from clearbit-go.

philipithomas avatar philipithomas commented on June 26, 2024

following and followers for Twitter also incorrect type - fix incoming

from clearbit-go.

philipithomas avatar philipithomas commented on June 26, 2024

Does Company no longer return a URL?

from clearbit-go.

Related Issues (11)

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.