Giter Site home page Giter Site logo

Comments (7)

judeibe avatar judeibe commented on July 19, 2024 1

I'll take a look at the api repo and if I can pin point the issue, I am facing I'll either create a new issue or pr.

from hagooglewifi.

djtimca avatar djtimca commented on July 19, 2024

I don't have a way to test that scenario to see what data is returned. Are you able to post a sample file which would highlight how that data is represented when it is returned from the API?

from hagooglewifi.

judeibe avatar judeibe commented on July 19, 2024

On this api call https://googlehomefoyer-pa.googleapis.com/v2/groups?prettyPrint=false the googlewifi library seems to pull the first id from groups. This is from the postman collection

// The first system's ID
pm.environment.set("system_id", jdata["groups"][0]["id"]);

{
    "groups": [
        {
            "id": "AAAAAA6aoPQ",
            ....,
        },
       {
           "id": "AAAAABhsip0",
           ....,
        }
     ]
}

from hagooglewifi.

djtimca avatar djtimca commented on July 19, 2024

That is odd then... in my library I iterate through the groups to capture all systems that are returned. Is the pm.environment code you listed from postman somewhere that I can look at?

from hagooglewifi.

judeibe avatar judeibe commented on July 19, 2024

from hagooglewifi.

djtimca avatar djtimca commented on July 19, 2024

Thanks @judeibe that's one of the docs I've been using to pull this together. But I am actually iterating through the systems in groups in my library so I'm wondering if the issue might be that Google isn't actually returning all of the systems under the account. Might be related to the token approach to authentication. I'll see if I can't put together a tool to get some test data in the way I'm pulling it so i can validate.

from hagooglewifi.

djtimca avatar djtimca commented on July 19, 2024

Fixed in latest push. Thanks @judeibe!

from hagooglewifi.

Related Issues (20)

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.