Group
Extension

Matches 39

Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/doc/Client.pod ( view source; MetaCPAN )
生一个监听本地指定端口的HTTP服务器,用于接收api请求

返回数据完全为JSON格式,接口包括:

    获取个人信息        /openqq/get_user_info
    获取好友信息
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client/Method/_get_friend_info.pm ( view source; MetaCPAN )
use JSON;
use Webqq::Client::Util qw(code2state);
sub Webqq::Client::_get_friend_info{
    my $self = shift;
    my $uin = shift;
    my $api_url = 'http://s.web2.qq.com/api/get_friend_info2';
    my 
" if $self->{debug};
        my $json = JSON->new->utf8->decode( $response->content() );    
        return undef if $json->{retcode} !=0;
        my $user_info = $json->{result};
        for my $key 
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/GetDiscuss.pm ( view source; MetaCPAN )
escape);
use JSON;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shift;
    return [
        200,
        ['Content-Type' => 'text/plain'],
        [JSON->new->encod
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client/Plugin/SmartReply.pm ( view source; MetaCPAN )
package Webqq::Client::Plugin::SmartReply;
use JSON;
use AE;
use Encode;
use POSIX qw(strftime);
use Webqq::Client::Util qw(truncate console);
my $API = 'http://www.tuling123.com/openapi/api';
my %lim
ring,"\n";
        }
        my $reply;
        my $data = {}; 
        eval{
            $data = JSON->new->utf8->decode($res->content);
        };
        if($@){
            print $@,"\n" if $clien
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/SendSessMessage.pm ( view source; MetaCPAN )
::Openqq::SendSessMessage;
use parent qw(Plack::Component);
use URI::Escape qw(uri_unescape);
use JSON;
use Encode;;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = sh
  };
            my $json = JSON->new->utf8->encode($res);
            $responder->([
                200,
                ['Content-Type' => 'text/plain'],
                [$json],
            ]);
  
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client/Plugin/Perldoc.pm ( view source; MetaCPAN )
package Webqq::Client::Plugin::Perldoc;
use JSON;
use Webqq::Client::Util qw(console_stderr truncate);
if($^O !~ /linux/){
    console_stderr "Webqq::Client::App::Perldoc只能运行在linux系统上\
e_api . $module,(),sub{   
            my $response = shift;
            my $doc;
            my $json;
            my $code;
            if($client->{debug}){
                print "GET " . $metacpan
ponse->content;
            }
            eval{ $json = JSON->new->utf8->decode($response->content);};
            unless($@){ 
                if($json->{code} == 404){
                    return 0;
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/SendMessage.pm ( view source; MetaCPAN )
:App::Openqq::SendMessage;
use parent qw(Plack::Component);
use URI::Escape qw(uri_unescape);
use JSON;
use Encode;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shi
  };
            my $json = JSON->new->utf8->encode($res);
            $responder->([
                200,
                ['Content-Type' => 'text/plain'],
                [$json],
            ]);
  
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client/Method/_get_discuss_info.pm ( view source; MetaCPAN )
use JSON;
use Encode;
use Webqq::Client::Util qw(code2client);
sub Webqq::Client::_get_discuss_info {
    my $self = shift;       
    my $ua = $self->{ua};
    my $did = shift;
    return undef if $s
  if($response->is_success){
        print $response->content,"\n" if $self->{debug};
        my $json;
        eval{
            #my $d = $response->content();
            #$d=~s/\\u([a-zA-Z0-9]{4})/
     $json = JSON->new->utf8->decode($response->content());
        };    
        print $@ if $@ and $self->{debug};
        $json = {} unless defined $json;
        return undef if $json->{retcode}!
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client/Method/change_state.pm ( view source; MetaCPAN )
use JSON;
use Webqq::Client::Util qw(console);
sub Webqq::Client::change_state{
    my $self = shift;
    return undef if $self->{type} ne 'smartqq';
    my $state = shift;
    my $api_url = 'http://d
response->content(),"\n" if $self->{debug};
        my $json = JSON->new->utf8->decode( $response->content() );    
        return undef if $json->{retcode} !=0;
        console "登录状态已修改
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/GetGroupInfo.pm ( view source; MetaCPAN )
escape);
use JSON;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shift;
    return [
        200,
        ['Content-Type' => 'text/plain'],
        [JSON->new->encod
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/SendDiscussMessage.pm ( view source; MetaCPAN )
penqq::SendDiscussMessage;
use parent qw(Plack::Component);
use URI::Escape qw(uri_unescape);
use JSON;
use Encode;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shi
  };
            my $json = JSON->new->utf8->encode($res);
            $responder->([
                200,
                ['Content-Type' => 'text/plain'],
                [$json],
            ]);
  
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client/Method/_login2.pm ( view source; MetaCPAN )
use JSON ;
use Webqq::Client::Util qw(console);
sub Webqq::Client::_login2{
    my $self = shift;
    console "尝试进行登录(阶段2)...\n";
    my $ua = $self->{ua};
    my $api_url = 'http://d.

    for(my $i=0;$i<=$self->{ua_retry_times};$i++){
        my $response = $ua->post($api_url,[r=>JSON->new->utf8->encode(\%r)], @headers);
        if($response->is_success){
            print $respon
ntent() if $self->{debug};
            my $content = $response->content();
            my $data = JSON->new->utf8->decode($content);
            if($data->{retcode} ==0){
                $self->{qq_pa
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client.pm ( view source; MetaCPAN )
package Webqq::Client;
use strict;
use JSON;
use Encode;
use Time::HiRes qw(gettimeofday);
use LWP::Protocol::https;
use Storable qw(dclone);
use List::Util qw(first);
use base qw(Webqq::Message Webqq
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/GetRecentInfo.pm ( view source; MetaCPAN )
escape);
use JSON;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shift;
    return [
        200,
        ['Content-Type' => 'text/plain'],
        [JSON->new->encod
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client.pod ( view source; MetaCPAN )
生一个监听本地指定端口的HTTP服务器,用于接收api请求

返回数据完全为JSON格式,接口包括:

    获取个人信息        /openqq/get_user_info
    获取好友信息
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/GetDiscussInfo.pm ( view source; MetaCPAN )
escape);
use JSON;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shift;
    return [
        200,
        ['Content-Type' => 'text/plain'],
        [JSON->new->encod
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/SendGroupMessage.pm ( view source; MetaCPAN )
:Openqq::SendGroupMessage;
use parent qw(Plack::Component);
use URI::Escape qw(uri_unescape);
use JSON;
use Encode;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shi
  };
            my $json = JSON->new->utf8->encode($res);
            $responder->([
                200,
                ['Content-Type' => 'text/plain'],
                [$json],
            ]);
  
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/GetUserInfo.pm ( view source; MetaCPAN )
escape);
use JSON;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shift;
    return [
        200,
        ['Content-Type' => 'text/plain'],
        [JSON->new->encod
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Plack/App/Openqq/GetFriendInfo.pm ( view source; MetaCPAN )
escape);
use JSON;
sub call{
    my $self = shift;
    my $client = $self->{client};
    my $env  = shift;
    return [
        200,
        ['Content-Type' => 'text/plain'],
        [JSON->new->encod
Webqq-Client ( S/SJ/SJDY/Webqq-Client-8.5.3.tar.gz, SJDY, 2015; MetaCPAN )
Webqq-Client/lib/Webqq/Client/Method/_send_sess_message.pm ( view source; MetaCPAN )
use JSON;
use Encode;
sub Webqq::Client::_send_sess_message{
    my($self,$msg) = @_;
    return unless defined $msg->{group_sig};
    my $ua = $self->{asyn_ua};
    my $callback = sub{
        my $re
, 
        face            => $self->{qq_database}{user}{face} || 591,
        content         => JSON->new->utf8->encode($content),
        msg_id          => $msg->{msg_id},
        service_type    
   $s{content} = decode("utf8",$s{content});    
    my $post_content = [
        r           =>  JSON->new->utf8->encode(\%s),
    ];

    if($self->{type} eq 'webqq'){
        push @$post_content,(

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.