Giter Club home page Giter Club logo

Comments (4)

jaimzj avatar jaimzj commented on June 8, 2024

Hello,
Your title is asking about device and description you asking about positions.

It all depends on your code, as you are able to login successfully can you check what is the value in $sessionId ? I do not know what has been assigned to $sessionId in your code.

And for device positions what function are you calling? share some snippets from your code where exactly the problem is and I can try to help for sure.

from traccar-api-php.

hchinyavada avatar hchinyavada commented on June 8, 2024

Hello jaimzj below is my php code snippet:

login($email, $password); $login_response = $login->response; $response_array = json_decode($login_response); $sessionId = $response_array->token; echo $sessionId."\n"; $positions = $gpsManager->positions($sessionId); print_r($positions); ?>

from traccar-api-php.

jaimzj avatar jaimzj commented on June 8, 2024

the token value is used as alternative login credential.

Refer to the following link https://github.com/gpsguru/traccar-ui-php/blob/dfb101df6bf916629f21639d1b724c93e01e3554/loginDo.php#L9

For examples on login and the sessionId value.

from traccar-api-php.

perfectwebtech avatar perfectwebtech commented on June 8, 2024

when full code uploaded by you for web ?

from traccar-api-php.

Related Issues (17)

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.