1

UniqueID

(24/09/2015 19:00:16 отредактировано Desarrollo)

Тема: UniqueID

Hello.

I'm working with JAVA API to get Unit's and its properties (UniqueId, Phonenumber), somebody know how to get it?  I don't know if i have to set a DataFlag.



I hope your comments.  Thanks!

  • UniqueID
2

UniqueID

Re: UniqueID

Hello. Please see examples here or on the GitHub.

Mobile Development
Gurtam
3

UniqueID

Re: UniqueID

Hello Kopa!

Thanks for help me in other post.

I'm using this dataflag to get data unit (Name, customfields, UniqueId, phonenumber)

Item.dataFlag.base.getValue() | Item.dataFlag.customFields.getValue() | Item.accessFlag.editImage.getValue()

Before that delivery the new update system i can get it, but today only gets null data.

Can you tell me what is the dataflag that give the UniqueId and phonenumber??

I hope your comments.

Thanks!

4

UniqueID

Re: UniqueID

Hello Guys!

I'm deploy with JAVA API and i have a question, What is the dataflag that i need to get UniqueId, phonenumber1 and 2 ? , before the new update i used

Item.dataFlag.base.getValue() | Item.dataFlag.customFields.getValue() |Item.accessFlag.editImage.getValue()

Thoses apply correctly, but now only i have null data.

I hope your comments.

Thanks in advance!

5

UniqueID

Re: UniqueID

Desarrollo Hello. You can get unit's unique id and phone number by Unit.dataFlag.restricted data flag.

Mobile Development
Gurtam
6

UniqueID

(07/10/2015 23:41:45 отредактировано Desarrollo)

Re: UniqueID

Hello kopa.

I use this dataFlag but i can't get data Unit. I don't know if this is an error because i'm trying with all dataFlags sad

I hope your comments.

Thanks!

7

UniqueID

(07/10/2015 23:55:43 отредактировано Desarrollo)

Re: UniqueID

Here is the code

  • UniqueID
8

UniqueID

Re: UniqueID

Desarrollo Please check access type for token, which you use.
Parameter access type

Value    Description
0x100    online tracking
0x200    view access to most data
0x400    modification of non-sensitive data
0x800    modification of sensitive data
0x1000    modification of critical data, including messages deletion
0x2000    communication
-1    unlimited operation as authorizated user
(allows to manage user tokens)

http://sdk.wialon.com/wiki/en/sidebar/r … cess_flags
http://sdk.wialon.com/wiki/en/sidebar/r … rmat/token

Mobile Development
Gurtam
9

UniqueID

Re: UniqueID

Thank you so much!! I changed properties to generate token and its working!

10

UniqueID

(14/10/2015 01:18:10 отредактировано Desarrollo)

Re: UniqueID

Hello Kopa!!

I'm trying to get Messages by unit, but i don't know what is the best way tu use this method??

msj.loadInterval(id, from, to, 0, 0, Integer.MAX_VALUE, new MessagesResponseHandler()
            {

I hope that you can explain.

Thanks

11

UniqueID

Re: UniqueID

Please see example for Remote API and example for Javascript SDK. Example for Java API will be a similar.

Mobile Development
Gurtam