| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 23 Dec 2025 16:13:29 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100214053556
location: https://web.archive.org/web/20100214053556/https://github.com/qrush/nap
server-timing: captures_list;dur=0.549587, exclusion.robots;dur=0.044263, exclusion.robots.policy;dur=0.032900, esindex;dur=0.008786, cdx.remote;dur=62.044396, LoadShardBlock;dur=246.834597, PetaboxLoader3.datanode;dur=94.096034, PetaboxLoader3.resolve;dur=43.857045
x-app-server: wwwb-app221-dc8
x-ts: 302
x-tr: 334
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app221; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 23 Dec 2025 16:13:30 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 14 Feb 2010 05:35:57 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "ce3a44639d7a40063a407d3645c6a180"
x-archive-orig-x-runtime: 162ms
x-archive-orig-content-length: 24624
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 14 Feb 2010 05:35:56 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: TLA-20100214022751-00743-ia360903-c/TLA-20100214051048-00797-ia360906.us.archive.org.warc.gz
server-timing: captures_list;dur=0.414637, exclusion.robots;dur=0.012846, exclusion.robots.policy;dur=0.005536, esindex;dur=0.008022, cdx.remote;dur=8.684038, LoadShardBlock;dur=207.797037, PetaboxLoader3.datanode;dur=109.952994, PetaboxLoader3.resolve;dur=126.040033, load_resource;dur=101.857545
x-app-server: wwwb-app221-dc8
x-ts: 200
x-tr: 367
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
qrush's nap at master - GitHub
This service is courtesy of Pledgie.
qrush / nap forked from Fingertips/nap
- Source
- Commits
- Network (3)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Nap is a really simple REST API. — Read more
nap /
| name | age | message | |
|---|---|---|---|
| |
.autotest | Sun Aug 31 04:42:29 -0700 2008 | Add autotest recipe. [Manfred] |
| |
.gitignore | Wed Sep 24 06:33:09 -0700 2008 | Add documentation task to Rakefile. [Manfred] |
| |
LICENSE | Tue Aug 12 01:15:03 -0700 2008 | Initial import of code extracted from one of ou... [Manfred] |
| |
NOTES | Wed Dec 10 05:55:55 -0800 2008 | Bump version to 0.3. [Manfred] |
| |
README | Sat Oct 04 12:57:32 -0700 2008 | Document the current code. [Manfred] |
| |
Rakefile | Tue Mar 03 07:25:03 -0800 2009 | Change gemspec so it works on GitHub. Add Jewel... [Manfred] |
| |
lib/ | Tue Dec 22 12:53:10 -0800 2009 | Move the post body out even further [qrush] |
| |
nap.gemspec | Tue Mar 03 07:54:16 -0800 2009 | GitHub doesn't allow requires in gemspecs. [Manfred] |
| |
support/ | Sat Nov 15 17:47:36 -0800 2008 | add SSL support with certificate verification [jsierles] |
| |
test/ | Tue Dec 22 12:53:10 -0800 2009 | Move the post body out even further [qrush] |
README
= Nap
It be an extremely simple REST library, yo!
== Example
gem 'nap'
require 'rest'
require 'json'
response = REST.get('https://twitter.com/statuses/friends_timeline.json', {},
{:username => '_evan', :password => 'buttonscat'}
)
if response.ok?
timeline = JSON.parse(response.body)
puts(timeline.map do |item|
"#{item['user']['name']}\n\n#{item['text']}"
end.join("\n\n--\n\n"))
elsif response.forbidden?
puts "Are you sure you're `_evan' and your password is the name of your cat?"
else
puts "Something went wrong (#{response.status_code})"
puts response.body
end