Editing
API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== POST /gate/key/[doorcode] === With create=True and an existing, valid doorcode, redirects to a URL of the form /gate/key/[newdoorcode] which gives a valid new doorcode to open the door. ''Note: Jake asked me to (temporarily?) disable this, so I have'' With preferred=[number] you can suggest a doorcode you'd like to use. It's not guaranteed that the preferred option will be returned. Requires comment=[contact email address for new number] Suppose you have a doorcode 8499146, and you'd like to give a friend a new doorcode. She asks if she can have the number '7895473' <source lang="bash"> curl -v -X POST -d create=True -d preferred=7895473 \ -d comment="I'm Dara, my email is new@example.com" http://localhost:8080/gate/key/8499146 </source> would return something like this: <pre class="text"> > POST /gate/key/8499146 HTTP/1.1 > User-Agent: curl/7.26.0 > Host: localhost:8080 > Accept: */* > Content-Length: 29 > Content-Type: application/x-www-form-urlencoded > * upload completely sent off: 29 out of 29 bytes * additional stuff not fine transfer.c:1037: 0 0 * HTTP 1.0, assume close after body < HTTP/1.0 303 See Other < Date: Mon, 05 Nov 2012 05:07:29 GMT < localhost - - [04/Nov/2012 21:07:29] "POST /gate/key/8499146 HTTP/1.1" 303 0 Server: WSGIServer/0.1 Python/2.7.3rc2 < Content-Length: 0 < Content-Type: text/html; charset=UTF-8 < Location: http://localhost:8080/gate/key/7895473 < * Closing connection #0 </pre> The Location header contains the new doorcode.
Summary:
Please note that all contributions to Noisebridge are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Noisebridge:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Request account
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Dig in!
Noisebridge
- Status: MOVED
- Donate
- ABOUT
- Accessibility
- Vision
- Blog
Manual
MANUAL
Visitors
Participation
Community Standards
Channels
Operations
Events
EVENTS
Guilds
GUILDS
- Meta
- Electronics
- Fabrication
- Games
- Music
- Library
- Neuro
- Philosophy
- Funding
- Art
- Crypto
- Documentation/Wiki
Wiki
Recent Changes
Random Page
Help
Categories
(Edit)
Tools
What links here
Related changes
Special pages
Page information