Art-of-WiFi / UniFi-API-browser

Tool to browse data exposed by Ubiquiti's UniFi Controller API
MIT License
1.1k stars 150 forks source link

limitation of multi use voucher #27

Closed tiransa closed 7 years ago

tiransa commented 7 years ago

dear friend,

already i asked question about how to limit multi use voucher. now that have developed in unifi controller 5.5.11 beta version. so please check that and quickly update api browser tool.

malle-pietje commented 7 years ago

I currently do not have time to work on that so may I suggest you submit a pull-request for this and/or share more of the results of your research.

tiransa commented 7 years ago

ok i ill try to do that. when you have free time, check that

tiransa commented 7 years ago

in controller version 5.5.11 there is fetcher to select number of device as following image. i want to add this to api browser [image: Inline image 1] image

On Mon, Jun 12, 2017 at 11:14 AM, malle-pietje notifications@github.com wrote:

I currently do not have time to work on that so may I suggest you submit a pull-request for this and/or share more of the results of your research.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/malle-pietje/UniFi-API-browser/issues/27#issuecomment-307694773, or mute the thread https://github.com/notifications/unsubscribe-auth/AMkb_CUEH9tye7CKPogdo4ofUG2s7_Gnks5sDNBQgaJpZM4N2q-H .

malle-pietje commented 7 years ago

The image isn't visible...

tiransa commented 7 years ago

check that i have added again

malle-pietje commented 7 years ago

So you want this added to the API client class (not the API browser, that would not make sense) to allow you to also modify that attribute when creating vouchers?

tiransa commented 7 years ago

yes

On Mon, Jun 12, 2017 at 12:18 PM, malle-pietje notifications@github.com wrote:

So you want this added to the API client class (not the API browser, that would not make sense) to allow you to also modify that attribute when creating vouchers?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/malle-pietje/UniFi-API-browser/issues/27#issuecomment-307704159, or mute the thread https://github.com/notifications/unsubscribe-auth/AMkb_CJJvTzAssa4QpI91RxsPxr7yquUks5sDN8ogaJpZM4N2q-H .

malle-pietje commented 7 years ago

OK, I'll see what's possible. As I said, I'm extremely busy with paid work at the moment so it can take a while before I get to it.

tiransa commented 7 years ago

i am waiting for that

On Mon, Jun 12, 2017 at 12:24 PM, malle-pietje notifications@github.com wrote:

OK, I'll see what's possible. As I said, I'm extremely busy with paid work at the moment so it can take a while before I get to it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/malle-pietje/UniFi-API-browser/issues/27#issuecomment-307705144, or mute the thread https://github.com/notifications/unsubscribe-auth/AMkb_Nca_4od5YS2uBlm_90MItY6Zyqtks5sDOC3gaJpZM4N2q-H .

malle-pietje commented 7 years ago

I just looked into voucher creation on 5.5.17 and I see no major change other than the way expiry is handled.

Creating multi-use vouchers still works the same as with previous versions so using the create_vouchers() will work fine for your purpose. Pay special attention to the quota parameter...: https://github.com/malle-pietje/UniFi-API-browser/blob/master/phpapi/class.unifi.php#L859-L887

tiransa commented 7 years ago

yes. it is working. thank you dear

On Sat, Jun 17, 2017 at 3:32 PM, malle-pietje notifications@github.com wrote:

I just looked into voucher creation on 5.5.17 and I see no major change other than the way expiry is handled.

Creating multi-use vouchers still works the same as with previous versions so using the create_vouchers() will work fine for your purpose. Pay special attention to the quota parameter...: https://github.com/malle-pietje/UniFi-API-browser/blob/ master/phpapi/class.unifi.php#L859-L887

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/malle-pietje/UniFi-API-browser/issues/27#issuecomment-309205868, or mute the thread https://github.com/notifications/unsubscribe-auth/AMkb_Pn2ClOXW55LI6SBbyZRsAfVJxkiks5sE6RRgaJpZM4N2q-H .

malle-pietje commented 7 years ago

Thanks for confirming!