{"id":13476132,"url":"https://github.com/easychen/nowboard","last_synced_at":"2025-04-29T23:30:43.472Z","repository":{"id":12971314,"uuid":"15649856","full_name":"easychen/nowboard","owner":"easychen","description":"基于SAE Channel服务的实时信息流展板。通过微博帐号登入、可聊天；支持API发布信息，可用于服务器调试信息、错误信息展示。","archived":false,"fork":false,"pushed_at":"2014-02-27T06:00:02.000Z","size":501,"stargazers_count":27,"open_issues_count":0,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T20:11:13.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easychen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-05T11:23:36.000Z","updated_at":"2025-02-28T16:30:03.000Z","dependencies_parsed_at":"2022-09-18T23:11:54.260Z","dependency_job_id":null,"html_url":"https://github.com/easychen/nowboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fnowboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fnowboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fnowboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fnowboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easychen","download_url":"https://codeload.github.com/easychen/nowboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599732,"owners_count":21615574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:26.885Z","updated_at":"2025-04-29T23:30:41.730Z","avatar_url":"https://github.com/easychen.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"Nowboard\n========\n\n基于SAE Channel服务的实时信息流展板。通过微博帐号登入、可聊天；支持API发布信息，可用于服务器调试信息、错误信息展示。\n\n# SAE服务配置\n* 开通Channel服务，内测期可找@sinaappengine 申请。\n* 开通Memcache服务，1M就够。\n* TaskQueue服务，并在TaskQueue服务中创建一个名叫nowboard的顺序队列。这是因为Channel服务接口有时候很慢，所以用TaskQueue改为异步。\n\n# 创建微博应用\n* 到open.weibo.com创建一个应用，要得到APP key和App Secret。\n* 如果没通过审核，记得要在应用管理里边添加测试用户。不然微博授权会出错。\n\n# 修改配置文件\n* 将config/app.sample.config.php 改名为 config/app.config.php。\n* 按提示将微博应用的APP key和App Secret填入。 \n* 将要使用本应用的用户的微博UID按提示加入 talkman 数组。\n* 如果要允许其他应用发送信息，按提示加入 whois 数组，key为appkey，value为来源文案。\n\n# 其他说明\n* 为实时信息流设计，没有存储，后打开的用户看不见之前用户的对话。\n* 只显示最新50条信息\n\n# API调用说明\n* API接口地址为 *.sinaapp.com/?a=api\n* GET/POST方法均可\n* 接收参数如下\n  * source - appkey\n  * data - 要传输的数据\n  * ckeys - 用,分割的tag，对应界面左侧的tag列表和计数，建议用英文\n    \n# CURL调用示例\n为避免网络超时，调用时应强制超时时间。\n\n```php\nfunction nblog( $content , $tags = null )\n{\n    $baseurl = 'http://*.sinaapp.com/?a=api\u0026data=' . u($content) ;\n\n    if( $tags != null ) \n        $baseurl = $baseurl.'\u0026ckeys='.u($tags) ;\n\n    // SAE\n    $url = $baseurl.'\u0026source=528342357';\n    // meituan\n    //$url = $baseurl.'\u0026source=33333456';\n\n    $ch = curl_init();\n    curl_setopt($ch, CURLOPT_URL, $url);\n    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,3 ); \n    curl_setopt($ch, CURLOPT_TIMEOUT, 5 ); \n    $response = curl_exec($ch);\n    curl_close($ch);\n\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fnowboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychen%2Fnowboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fnowboard/lists"}