Comments (4)
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.
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.
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.
when full code uploaded by you for web ?
from traccar-api-php.
Related Issues (17)
- how to using of php api tarccar how to install? HOT 11
- Geofences HOT 3
- sessionId in gps::devices method HOT 2
- Events API HOT 1
- How to setup a Websocket connection with cookie authentication HOT 2
- code
- api-use example HOT 3
- how could i contact to you HOT 2
- How to create session and receive data from Websocket HOT 1
- UI HOT 2
- what to send as $cookie parameter for any function HOT 5
- link/unlink objects HOT 1
- Admin Access Required upon edit user HOT 1
- Updates November 2018 HOT 1
- Redeclared function HOT 2
- Geo-Fence HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traccar-api-php.