{"id":19205555,"url":"https://github.com/tolerious/renrensdk","last_synced_at":"2025-07-23T04:03:43.625Z","repository":{"id":8440829,"uuid":"10032026","full_name":"tolerious/RenrenSDK","owner":"tolerious","description":"Another SDK of renren.com,written in pure C","archived":false,"fork":false,"pushed_at":"2013-08-22T10:18:15.000Z","size":312,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T13:35:36.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"YaleSTC/reservations","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tolerious.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":"2013-05-13T13:18:40.000Z","updated_at":"2014-10-06T12:05:21.000Z","dependencies_parsed_at":"2022-07-29T23:49:33.219Z","dependency_job_id":null,"html_url":"https://github.com/tolerious/RenrenSDK","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tolerious/RenrenSDK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2FRenrenSDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2FRenrenSDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2FRenrenSDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2FRenrenSDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tolerious","download_url":"https://codeload.github.com/tolerious/RenrenSDK/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2FRenrenSDK/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266614309,"owners_count":23956342,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-09T13:13:11.180Z","updated_at":"2025-07-23T04:03:43.572Z","avatar_url":"https://github.com/tolerious.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"A SDK of renren.com written in pure c\n===\n\nMAC OS X\n-------\n\n* install homebrew\n\n  ```ruby -e \"$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)\"```\n  关于homebrew的介绍可以看它的[官网](mxcl.github.io/homebrew/),它的主要功能就是让你像在Linux下一样\n  通过命令行的方式来安装和卸载软件,如果出现编译的时候说找不到库的话,你\n  需要把你安装的库,例如glib的目录添加到PATH变量中,添加的方法跟在Linux\n  下面是一样的.\n\n* install sqlite3\n\n  ```brew install sqlite3```\n  \n* install json-glib\n\n  ```brew install json-glib```\n\n  上面的语句会帮你把json-glib所依赖的所有库都自动安装好\n  \nUbuntu/Debian\n---------\n\n* install sqlite3\n\n  ```apt-get install sqlite3```\n\n* install json-glib\n\n  ```apt-get install build-essential libjson0 libjson0-dev libjson0-dbg\n  libjson-glib-1.0-0 libjson-glib-1.0-0-dev libjson-glib-1.0-0-dbg\n  libjson-glib-1.0-0-doc ```\n\n  如果你想看glib的文档,你可以通过浏览器浏览这个[网址](file:///usr/share/gtk-doc/html/json-glib/index.html)\n\n项目结构说明\n------------\n\n*include* 存放头文件,包括第三方库\n\n*src* 存放源码\n\n*test* 存放测试用例\n\n*document* 存放文档\n\n*nbproject* 这个文档是用netbeans IDE打开时候所产生的附加文档\n\n调用SDK需要注意的事项\n-----------\n\n  SDK中，所有的文件名称和这个文件中所代表的函数名称是一样的，所以你知道了这个文件的名\n字，你就知道了这个文件中所包含的函数的名字，然后根据文档，传入所需要的\n参数，你就可以获得服务器返回的值，这些值可能存在数据库里面，可能存在一\n个结构体中，可能存在json文件中，在一些文件中，用了cjson来解析了服务器\n返回的json文件，这样更方便调用函数的人获得所需要的数据，当然，为了存储\n的便利，有一些数据可能会存储在数据库中，函数需要的参数，以及函数返回的\n数据的类型，还有返回数据的存储方式在下面的文档中都有详细的介绍，方便调\n用者。\n\n* AccessToken.h\n\n  定义了程序中用到的宏\n  \n* GetAccessToken.h\n\n  像人人网发送请求，获取授权页面，保存为`result.html`在浏览器打开这个文件后，输入你的校内网用户名和密码，在跳转后的页面中的url中，你可以提取你的access_token，access_token就是在跳转后的url中的access_token=后面，在\u0026expires_in前面的那一串数字，在我们后面的功能中，需要你提供这个access_token，这样我们的应用才可以读取你的一些信息，以便更好的为你服务，读取你的好友列表，你的最近来访等等，帮你做更进一步的分析。\n  \n* GetUserInfo.h\n\n  这个接口的主要功能是获取用户信息，你唯一需要做的就是传给GetUserInfo\n  函数一个access_token的参数，当我们像服务器做出请求后，服务器返回给我\n  们的是一个json格式的文件，我们用c把这个json的文件解析，然后存储在我\n  们定义的UserInfo的数据结构中，当你需要任何数据的时候，创建一个\n  UserInfo类型的变量，然后调用GetUserInfo函数，你就得到了你所需要的一\n  切\n\n* GetCurrentSessionID.h\n\n  这个接口的功能是通过传递一个access_token到函数中，然后服务器会返回一\n  个当前会话的用户ID。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolerious%2Frenrensdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftolerious%2Frenrensdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolerious%2Frenrensdk/lists"}