Code Monkey home page Code Monkey logo

libplurc's Introduction

I think this is obsolete...   
   
   
   ___ __        __            
  / (_) /  ___  / /_ __________
 / / / _ \/ _ \/ / // / __/ __/
/_/_/_.__/ .__/_/\_,_/_/  \__/ 
        /_/    by [email protected],
		  [email protected]

(1) What is libplurc?

 libplurc is a minimalistic library written in C, which provides API to
 Plurk.com - popular microblogging service.

(2) Can I use it in my projects? What is its licence?

 Probably yes. This library is licensed under The BSD License, please find
 the details in LICENSE file.

(3) What is plurc?

 plurc is an example C application, which uses libplurc.

(4) Which operating systems does it support? How stable it is?

 Every stable release: OpenBSD, NetBSD, FreeBSD, OpenSolaris, Solaris, Linux,
 and others. Development versions (from repository) are tested mainly on Linux
 Additionaly every stable release will be tested with Valgrind for possibility
 of memory leaks.

(5) Where is the documentation?

 For now you have to take a look at plurc sources (point (3)).

(6) Requirements?

 Standard C library + OpenSSL - no other dependiences. No automake, autotools,
 autoconf and other bloated things. Even no libcurl (rock).

(7) I would like to send patch / to be part of big libplurc community (lolz)

 So, just do it.

(8) What is config.h, config.h.template and do I need it?

 To simplify several things plurc is compiling with your login, password and 
 api key. So, just copy config.h.template into config.h and fill it with 
 correct data. Or you can modify plurc.c and add some input/output operations
 to handle username/password/api_key. If you don't like "hardcompiled" plurc
 aproach - don't use it, simply as that.

(9) I am new to Plurk, how can I join?

 Just go here: http://www.plurk.com/bluszcz/invite

(a) How to install?

 make
 make install

(b) How can I change place where libplurc is installed?

 Look at provided makefiles. If you have no idea what is this about, drop it 
 and try one of http://www.plurk.com/API#resources (high level library).

(c) I found a bug, security issue or just have a comment.

 Send me it, simply as that.

(d) There is a lot of strncpy in every API method which looks like "Do repeat
 yourself" anti-pattern. Huh?

 Yes, I know. API should be stable now - one day I will refactor it.

(e) It doesn't compile on my Unix flavour.

 Just fix it and send me the patch.

(f) As above, but I don't have idea how to do this.

 Give me shell account on this system and I will fix it.

libplurc's People

Contributors

bluszcz avatar cooldavid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gaod cooldavid

libplurc's Issues

Wont make on os/x

It wont build on OS/X, I spent 20 minutes trying to work out how to fix it but couldnt (:

user% make
cc -Wall -Wextra -Werror -I.  -shared -fPIC -lssl -g  -o libplurc.so libplurc.c -DSSL_CERT_PATH=/usr/local/etc/ssl/cert
Undefined symbols:
  "_ERR_print_errors_fp", referenced from:
      _fetchpage in ccBRmnUc.o
      _fetchpage in ccBRmnUc.o
      _fetchpage in ccBRmnUc.o
      _fetchpage in ccBRmnUc.o
  "_BIO_ctrl", referenced from:
      _fetchpage in ccBRmnUc.o
      _fetchpage in ccBRmnUc.o
      _fetchpage in ccBRmnUc.o
  "_BIO_new_connect", referenced from:
      _fetchpage in ccBRmnUc.o
  "_BIO_free_all", referenced from:
      _fetchpage in ccBRmnUc.o
  "_BIO_write", referenced from:
      _fetchpage in ccBRmnUc.o
  "_BIO_read", referenced from:
      _fetchpage in ccBRmnUc.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [library] Error 1

can't access plurk.com

I edit the Makefile as below:

all: plurc

lib:                                                                                                                     
    cc -fPIC -c -g -Wall -Wextra -Werror -o libplurc.o -DSSL_CERT_PATH=. libplurc.c
    ld -shared -rpath . -o libplurc.so libplurc.o -lssl 

plurc: lib 
    cc -Wall -Wextra -Werror -I. -c -o plurc.o plurc.c
    cc -Wall -Wextra -Werror -Wl,-rpath . -I. -L.  plurc.c  -o plurc -lplurc 
clean:
    rm libplurc.so libplurc.dylib *.o plurc

and make,
after I use the command: ./plurc add testmsg

it appears:

<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>

would you fix this bug ? :(
i'm not familiar with web request issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.