Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api Rodnoe - packet_expire #23

Open
miouser opened this issue Jul 7, 2013 · 1 comment
Open

api Rodnoe - packet_expire #23

miouser opened this issue Jul 7, 2013 · 1 comment

Comments

@miouser
Copy link
Contributor

miouser commented Jul 7, 2013

попытался реализовать информацию об окончании подписки.
и вроде как нашёл решение для получения необходимой информации с сервера

root2 = self.getData("/get_account_info?", "packet expire" )
subscriptions = root2.find('subscriptions').find('item')
self.packet_expire= subscriptions.findtext('end_date')
self.trace("Packet expire: %s" % self.packet_expire)

в ответе там
нормальная дата <end_date>2013-07-14</end_date> и из за этого конфликтует в главном плагине :(

подскажите как решить задачу

@miouser
Copy link
Contributor Author

miouser commented Aug 12, 2013

кстати необязательно использовать root2
инфу о аккаунте выдает запрос "with_acc" который можно вставить в строчку
httpstr = self.opener.open(self.site+"/login?with_cfg&with_acc&"+ params).read()

но как передать дату плагину я не могу понять ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant