| Pages: [1] :: one page |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Alexis Prey
Congregation of Whispering Bears Shortbus Riders Association
4
|
Posted - 2011.09.15 10:16:00 -
[1] - Quote
I'd like to be able to tell a corp leader what information the user has given him or her access too. Is there somewhere I can get this information, or do I have to query everything, and just find out when it gives error?
I tried API Key Info, but it didn't give me anything usefull. |

Lutz Major
7
|
Posted - 2011.09.15 10:30:00 -
[2] - Quote
Just compare test the bitmask of the accessMask of the ApiKeyInfo with the accessMask of the requests |

Alexis Prey
Congregation of Whispering Bears Shortbus Riders Association
4
|
Posted - 2011.09.15 10:32:00 -
[3] - Quote
Lutz Major wrote:Just compare test the bitmask of the accessMask of the ApiKeyInfo with the accessMask of the requests
Very helpful. Thanks so much |

Alexis Prey
Congregation of Whispering Bears Shortbus Riders Association
4
|
Posted - 2011.09.15 10:48:00 -
[4] - Quote
Okay, I'm sorry, I take it back. I understand that I can somehow compare the number I got with these numbers... But after looking at it, I'm lost. How can I test the mask I got with this mask? I did try to research on my own, but even my programmer friend who usually knows everything is confused. |

Artem Valiant
NecroRise Squadron Ultima Rati0
0
|
Posted - 2011.09.15 12:55:00 -
[5] - Quote
Alexis Prey wrote:Okay, I'm sorry, I take it back. I understand that I can somehow compare the number I got with these numbers... But after looking at it, I'm lost. How can I test the mask I got with this mask? I did try to research on my own, but even my programmer friend who usually knows everything is confused.
Use operation 'bitwise AND' For example: Your mask 73404417 You want to call Char/Contracts. Required mask for this request is 67108864. 73404417 AND 67108864 = 67108864 But, if you want to call MarketOrders (with mask 4096) 73404417 AND 4096 = 0 |

Aethlyn
24
|
Posted - 2011.09.15 13:12:00 -
[6] - Quote
To do it with the Windows Calculator (calc.exe; requires Windows Vista or Windows 7 - I'm not sure about the version of Windows XP):
- Hit Alt+2 to toggle to programmer view.
- Make sure on the left 'Dec' is selected (should be default).
- Type the number retrieved with the API key.
- Hit the button 'And' (bottom center).
- Now type the number you've got from the request list matching the part you're interested in (e.g. 4096 for Market orders).
- Hit '='.
- If the result is '0', that access is not included in the key; if the result is once again the ID you entered before, access is granted.
Looking for more thoughts? Read my blog or follow me on Twitter. |
| |
|
| Pages: [1] :: one page |
| First page | Previous page | Next page | Last page |