| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 23 Dec 2025 14:57:04 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090910005719
location: https://web.archive.org/web/20090910005719/https://github.com/Fingertips/nap/tree/master
server-timing: captures_list;dur=0.877721, exclusion.robots;dur=0.071890, exclusion.robots.policy;dur=0.059113, esindex;dur=0.012219, cdx.remote;dur=116.434776, LoadShardBlock;dur=237.832014, PetaboxLoader3.datanode;dur=65.978824, PetaboxLoader3.resolve;dur=110.594695
x-app-server: wwwb-app244-dc8
x-ts: 302
x-tr: 401
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app244; 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 14:57:05 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Thu, 10 Sep 2009 00:57:17 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "6419ee7946193fd329643786736b0cad"
x-archive-orig-x-runtime: 604ms
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 22808
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 10 Sep 2009 00:57:19 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: 52_11_20090910003432_crawl103.gpg-c/52_11_20090910005625_crawl101.arc.gz
server-timing: captures_list;dur=0.832101, exclusion.robots;dur=0.022156, exclusion.robots.policy;dur=0.008590, esindex;dur=0.012356, cdx.remote;dur=11.353145, LoadShardBlock;dur=293.497956, PetaboxLoader3.datanode;dur=252.792962, PetaboxLoader3.resolve;dur=112.326924, load_resource;dur=129.794372
x-app-server: wwwb-app244-dc8
x-ts: 200
x-tr: 489
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
Fingertips's nap at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install Fingertips-nap
| Description: | Nap is a really simple REST API. edit |
| Homepage: | edit |
| Public Clone URL: |
git://github.com/Fingertips/nap.git
Give this clone URL to anyone.
git clone git://github.com/Fingertips/nap.git
|
| Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:Fingertips/nap.git
|
Manfred Stienstra (author)
Tue Mar 03 07:54:16 -0800 2009
nap /
| name | age | message | |
|---|---|---|---|
| |
.autotest | Loading commit data... |
|
| |
.gitignore | ||
| |
LICENSE | ||
| |
NOTES | ||
| |
README | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
nap.gemspec | ||
| |
support/ | ||
| |
test/ |
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
This feature is coming soon. Sit tight!












