Home

Awesome

光谷社区

光谷社区 第三方客户端。

光谷社区 iOS下载地址

App Store下载地址

截图

image

image

image

image

image

image image

image

功能  是否支持
登录与切换账号
注册暂不支持,请去浏览器内完成注册
创建编辑主题
创建编辑回复
收藏与取消收藏
查看我的消息、主题、回复、收藏
黑名单支持本地屏蔽,重新安装后会丢失
社区表情不支持,暂无支持计划
@某人支持
语音输入支持
图片支持,使用sm.ms图床,自动插入图片

安装方式

首先确保安装了cocoapods,然后将工程用git clone下来后,在Podfile目录执行命令pod install。等待命令完成后,会生成一个guanggoo-iOS.xcworkspace的文件,打开这个文件进行编译即可。

光谷社区 android下载地址

Google Play小米应用商店酷安GitHub
<a href="https://play.google.com/store/apps/details?id=org.mazhuang.guanggoo" target="_blank"><img alt="Google Play" width="183px" height="39px" src="https://raw.githubusercontent.com/mzlogin/guanggoo-android/e37a6cb7f16ddb56b5279c933f365a024cf17126/assets/image/play-store.png"/></a><a href="http://app.mi.com/details?id=org.mazhuang.guanggoo" target="_blank"><img alt="小米应用商店" height="39px" src="https://raw.githubusercontent.com/mzlogin/guanggoo-android/e37a6cb7f16ddb56b5279c933f365a024cf17126/assets/image/xiaomi-market.png"/></a><a href="https://www.coolapk.com/apk/org.mazhuang.guanggoo" target="_blank"><img alt="酷安" height="39px" src="https://raw.githubusercontent.com/mzlogin/guanggoo-android/e37a6cb7f16ddb56b5279c933f365a024cf17126/assets/image/coolapk.png"/></a>Releases

android项目github地址:https://github.com/mzlogin/guanggoo-android

光谷社区 API 列表

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

登录

功能登录请求
HTTP 请求方式POST
URLhttp://www.guanggoo.com/

请求参数

参数名称类型是否必须描述
emailString邮箱
passwordString密码
_xsrfString唯一标识符,可用uuid

获取主题列表

默认排序:http://www.guanggoo.com/

最新话题:http://www.guanggoo.com/?tab=latest

精华主题:http://www.guanggoo.com/?tab=elite

节点主题列表:http://www.guanggoo.com/node/xxxxx

主题详情

URL: http://www.guanggoo.com/t/25804

获取节点列表

使用 GET 方法访问 http://www.guanggoo.com/nodes

<div class="nodes-cloud ...">
...
    <ul>
        <li>
            <label for>生活百科</label>
            <span class="nodes">
                <a href="/node/house">楼市房产</a>
                ...
            </span>
        </li>
        ...
    </ul>
...
</div>

创建或编辑回复

功能登录请求
HTTP 请求方式POST
URL回复url或者编辑url

请求参数

参数名称类型是否必须描述
tidString主题id,如若是编辑,则是编辑内容id
contentString回复内容
_xsrfString唯一标识符,登录时记下

 创建或编辑主题

功能登录请求
HTTP 请求方式POST
URL创建或编辑主题url

请求参数

参数名称类型是否必须描述
titleString主题内容
contentString主题内容
_xsrfString唯一标识符,登录时记下

个人信息页

URL: http://www.guanggoo.com/u/mzlogin

可以从其它页面获取到。

获取用户基本信息:

<div class="user-page">
    <div class="profile container-box">
        <div class="ui-header">
            <a href="/u/mzlogin">
                <img src="http://cdn.guanggoo.com/static/avatar/54/m_2fad3826-a776-11e6-a0b7-00163e020f08.png" alt="" class="avatar">
            </a>
            <div class="username">mzlogin</div>
            <div class="website"><a href="http://mazhuang.org">http://mazhuang.org</a></div>
            <div class="user-number">
                <div class="number">光谷社区第11554号成员</div>
                <div class="since">入住于2016-11-11</div>
            </div>
        </div>
        <div class="ui-content">
            <dl>
                <dt>ID</dt>
                <dd>mzlogin</dd>
            </dl>
            <dl>
                <dt>昵称</dt>
                <dd>mzlogin</dd>
            </dl>
            <dl>
                <dt>Email</dt>
                <dd>mzlo***@qq.com</dd>
            </dl>
            <dl>
                <dt>Blog</dt>
                <dd><a href="http://mazhuang.org">http://mazhuang.org</a></dd>
            </dl>
        </div>
    </div>
</div>

获取用户活动统计:

<div class="usercard container-box">
    <div class="ui-content">
        <div class="status status-topic">
            <strong><a href="/u/mzlogin/topics">0</a></strong> 主题
        </div>
        <div class="status status-reply">
            <strong><a href="/u/mzlogin/replies">15</a></strong> 回复
        </div>
        <div class="status status-favorite">
            <strong><a href="/u/mzlogin/favorites">1</a></strong> 收藏
        </div>
        <div class="status status-reputation">
            <strong>0</strong> 信用
        </div>
    </div>
</div>

展示在用户个人信息页的基本信息这些就够了,发表过的主题列表和回复列表只显示数量,另外用页面单独列出,参考 https://github.com/shitoudev/v2ex

发表过的主题列表

URL: http://www.guanggoo.com/u/mzlogin/topics

回复列表

URL: http://www.guanggoo.com/u/mzlogin/replies

<div class="replies-lists ...">
    ...
    <div class="ui-content">
        <div class="reply-item">
            <div class="main">
                <span class="title">
                    回复了 dc2012ms 创建的主题
                    <a href="/t/25910">光谷是真心好!!!</a>
                </span>
                <div class="content">
                    <p>这几天不知道怎么样了</p>
                </div>
            </div>
        </div>
        <div class="reply-item">
            ...
        </div>
        ...
    </div>

    <div class="ui-footer">
        ...
        <ul class="pagination">
            <li class="disabled">
                <a href="/u/mzlogin/replies?p=1">上一页</a>
            </li>
            <li class="active">
                <a href="javascript:;">1</a>
            </li>
            ...
        </ul>
        ...
    </div>
</div>

收藏列表

URL: http://www.guanggoo.com/u/mzlogin/favorites

收藏

收藏主题

Request

GET http://www.guanggoo.com/favorite?topic_id=25869 HTTP/1.1
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
Referer: http://www.guanggoo.com/t/25869
Accept-Language: zh-Hans-CN,zh-Hans;q=0.5
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; LCTE; rv:11.0) like Gecko
Host: www.guanggoo.com
Connection: Keep-Alive
Cookie: Hm_lvt_fc1abeddfec5c3ea88cf6cdae32cdde7=1506732697; Hm_lpvt_fc1abeddfec5c3ea88cf6cdae32cdde7=1506732725; _ga=GA1.2.427913396.1506732727; _gid=GA1.2.1767756529.1506732727; _gat=1; _xsrf=7deabf7bde3b45149513f4bb58e77c63; verification="NDhhMDQ2OWQ4YTkzZDk2YzBiNjg0NjA5NzQzYjY0YWFiNDRiYzQ2YTQxYmZkZDE5Y2MxZTdmMWIxMTJkNWY2MQ==|1506732718|f218f25cb28c6332fc89c0c881566733d75da0ec"; session_id="YmQ4ZmRhYzEwZjI0OTA5ZjZhMGI2ZTI0NzIxYWU4MGI5MjNmNDJiMWUwM2VkM2E0OWM2OTk0YjJkMmNlZTE5Yg==|1506732718|1be79cbef19d9f452faa5914288b97b47319562b"; user="MTE1NTQ=|1506732718|a881d8d2377805df8bd0e7917f7442de47416f02"


Response

HTTP/1.1 200 OK
Date: Sat, 30 Sep 2017 00:52:15 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 45
Connection: keep-alive
Etag: "f071a3a1e35db1fc03c43ec254ea523dc9017b4c"
Server: TornadoServer/3.2

{"message": "favorite_success", "success": 1}

取消收藏

Request

GET /unfavorite?topic_id=25884 HTTP/1.1
Host: www.guanggoo.com
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Referer: http://www.guanggoo.com/t/25884
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6
Cookie: verification="MWZkMTQ4YWMyZWI5OTViZDEyNzM0NTQ2MWI5MzY5MDJmOTQ2NTVmMmI5MzlhZWQzMTc4YmY3ZjFjOWYwNmUwNQ==|1505449242|cd6806b985b1659d0e1e813e5edb92aa2f05de4b"; session_id="ZTExYWY4NDAzZTA1NDg0NWViYzhhMTM2ZDUyNDQ2MjI0OGQwYWM1MjU5NWRlZDBjMGQwMjdjNjdkZWQ3NWMxYw==|1505449242|898c284efed1c85cb6a80211ff7b88d963456e8a"; user="MTE1NTQ=|1505449242|8338edc07e6b8ef60f11a6cf627b8e7ed96b26a5"; _xsrf=8958ec90a24b43328d83341349212956; _gat=1; _ga=GA1.2.606805923.1500596270; _gid=GA1.2.2032501243.1506493190; Hm_lvt_fc1abeddfec5c3ea88cf6cdae32cdde7=1506730927,1506732617,1506732674,1506734767; Hm_lpvt_fc1abeddfec5c3ea88cf6cdae32cdde7=1506734780

Response

HTTP/1.1 500 Internal Server Error
Date: Sat, 30 Sep 2017 01:26:38 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 93
Connection: keep-alive
Server: TornadoServer/3.2

<html><title>500: Internal Server Error</title><body>500: Internal Server Error</body></html>