fburl is a Twurl clone for Facebook
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

fburl.cr Build Status

fburl is a Twurl clone for Facebook.

  • alpha stage: Support only system user.

Features

similar

  • commands: request, alias
  • implements: command pattern with controller

dialect

  • config: use TOML format rather than YAML

Installation

Static Binary is ready for x86_64 linux

Compile from source / Use as Crystal library

Usage

config

% fburl config init
% vi ~/.fburlrc     # set access_token

basic

% fburl /me      # perform the GET request
% fburl /me -D - # dump header like cURL
  • TODO: now support only GET method

paging

If -r option is given, client automatically follows next link until the page count reaches --max-next (default: 15).

% fburl /...    | jq '.data|length'  # => 25
% fburl /... -r | jq '.data|length'  # => 128

dryrun

% fburl /me -n      # print curl command 
% fburl /me -n | sh # run it

Roadmap

v1.0.0

  • Command : Account
  • Command : Alias(basic)
  • Command : Alias(placeholder)
  • Command : Authorization(support user account)
  • Command : Config
  • Command : Request(GET)
  • Command : Request(POST)
  • Command : Request(BATCH)
  • Command : Request(curl)
  • Library : execute returns HTTP::Client::Response
  • Client : Paging

Contributing

  1. Fork it ( https://github.com/maiha/fburl.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • maiha maiha - creator, maintainer