Current revision |
Your text |
Line 36: |
Line 36: |
| * {{link|Image:Members:2012-12-17_20_46_41u-scan.pdf}} | | * {{link|Image:Members:2012-12-17_20_46_41u-scan.pdf}} |
| * {{link|Image:Members:2012-12-17_22_58_12u-scan.pdf}} | | * {{link|Image:Members:2012-12-17_22_58_12u-scan.pdf}} |
- | == 2012-12-31 ==
| |
- |
| |
- | Can use wget to log into Rapid Notify, clear out the call out list, and repopulate it with new entries.
| |
- |
| |
- | Log in:
| |
- |
| |
- | wget --save-cookies cookies.txt --keep-session-cookies https://alert.rapidnotify.com/session/new
| |
- |
| |
- | <form action="/session" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="YYYYYYYYYY=" /></div> <p>
| |
- |
| |
- | The authenticity_token does not change throughout the session.
| |
- |
| |
- | wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies --post-data 'authenticity_token=YYYYYYYYYY=&login=brettwuth&password=XXXX' https://alert.rapidnotify.com/session
| |
- |
| |
- | Get the current list. List #41871 is the test PCSAR call out list.
| |
- | The number should not change as long as we never delete and replace
| |
- | the list (as opposed to the list contents).
| |
- |
| |
- | This will produce the current contact numbers which should be deleted.
| |
- |
| |
- | wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies https://alert.rapidnotify.com/lists/41871
| |
- |
| |
- | <pre>
| |
- | <a href="/contacts/21974215/edit">Edit</a>
| |
- | </pre>
| |
- |
| |
- | Delete each contact:
| |
- |
| |
- | wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies --post-data 'authenticity_token=YYYYYYYYYY=&_method=delete' https://alert.rapidnotify.com/contacts/21974215
| |
- |
| |
- |
| |
- | Add new contacts:
| |
- |
| |
- | wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies --post-data 'authenticity_token=YYYYYYYYYY=&contact[first_name]=#13 John Smith&contact[phone_number]=4036271212&contact[phone_number2]=4036271212&contact[phone_number3]=4032351212&contact[email]=wuth@acm.org&contact[sms]=4036271212' https://alert.rapidnotify.com/lists/new_contact/41871
| |
- |
| |
- |
| |
- | Note that download produces some interesting fields
| |
- | <pre>
| |
- | Name,Email,SMS,Phone,Pin,Report field1,Report field2,Report field3,Report field4,Report field5,Active,Phone number2,Phone number3,Address,City,State/Province,ZIP/Postal
| |
- | #02 Charlie Brown,"",,4036271212,"","","","","","",true,,,"","","",""
| |
- | </pre>
| |
- |
| |
- | There's a header line. Perhaps if that's reproduced exactly, uploads
| |
- | would not require manual column matching.
| |
- |
| |
- | There's a field "Active" which is undocumented and not accessible from
| |
- | the GUI. Perhaps uploads can manage, or more importantly, using POST
| |
- | parameter. Think GreaseMonkey extension.
| |