### Example JSON Load for Single Entry Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/enterprise-api.md This is an example of the JSON structure returned when fetching a single entry. ```json { "serial_number": 1, "field_1": "小金", "field_16": "金数据", "field_2": "2jYk", "field_4": { "value": "18629058968", "verified": true }, "field_3": [ "zI63", "uN9L" ], "field_17": "roody@jinshuju.com", "field_5": [ "7oLf", "vQki" ], "field_10": "1lq3", "field_11": "小金的应用场景", "field_12": "金数据在各行各业的用法", "field_6": "金数据有没有一些更加高级的技巧呢?", "field_7": "", "field_8": "1. 能否参加\n2. 哪个公司?\n3. 金数据的使用情况", "field_15": "", "field_18": "", "creator_name": "o王琰o", "updater_name": "", "created_at": "2016-02-17T11:40:31.524Z", "updated_at": "2016-02-17T11:40:31.524Z", "info_remote_ip": "123.139.21.4", "info_platform": "Macintosh", "info_os": "OS X 10.11.3", "info_browser": "Chrome 48.0.2564.109" } ``` -------------------------------- ### Form Status Response Example Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/enterprise-api.md An example of the JSON response for the 'Get Form Status' endpoint, indicating the form's open state, permission, and entry count. ```JSON { "is_open": true, "permission": "public", "entries_count": 60 } ``` -------------------------------- ### Copy Form Response Example Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/enterprise-api.md This is an example of the JSON response received after successfully copying a form. It includes details of the newly created form such as its ID, token, name, and fields. ```JSON { "id": "58512d8159601539b83e75fa", "token": "AyEpBI", "name": "[新]学习小组第一期话题投票", "entries_count": 0, "shared": false, "description": "这是一个大家都可以加入或旁听的学习小组,", "created_at": "2016-12-14T11:31:14.255Z", "updated_at": "2016-12-14T11:31:15.325Z", "fields": [ { "type": "single_line_text", "label": "你的大名", "api_code": "field_1", "notes": "", "validations": {}, "predefined_value": null, "private": false }, { "type": "multiple_choice", "label": "请选择你喜欢的话题", "api_code": "field_2", "notes": "", "validations": {}, "private": false, "choices": [ { "name": "如何理解产品经理这个角色", "value": "gRpI", "hidden": false }, { "name": "如何提高碎片化阅读的效率", "value": "gmIV", "hidden": false }, { "name": "利用Excel进行数据分析的技巧", "value": "qTXj", "hidden": false }, { "name": "如何快速阅读一本书", "value": "OASQ", "hidden": false }, { "name": "QA进阶。相信我,你们都不需要入门", "value": "H2YM", "hidden": false }, { "name": "《无价》读书心得分享", "value": "Ud2N", "hidden": false }, { "name": "设计中关于字体的二三事", "value": "V2nl", "hidden": false }, { "name": "金数据产品运行的基本原理。", "value": "BxvN", "hidden": false }, { "name": "金数据设计的基本原则和思考", "value": "rQAm", "hidden": false } ], "allow_other": false } ], "setting": { "icon": "form-icon-chart", "color": "#BB87AF", "open_rule": "open", "permission": "public", "result_state": "closed", "result_url": null, "search_state": "closed", "search_url": null, "push_url": null, "success_redirect_url": null, "success_redirect_fields": [] } } ``` -------------------------------- ### Pagination Example with Per Page Parameter Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/jinshuju-net-api.md Shows how to request a specific number of items per page for paginated API responses, up to a maximum of 50. ```http GET https://api.jinshuju.net/v4/forms?access_token=...&per_page=50 ``` -------------------------------- ### Get Current User Basic Info API Response Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/jinshuju-net-api.md Example JSON response for the API endpoint that fetches basic information about the currently authenticated user. ```json { "email": "email@mail.com", "nickname": "email@mail.com", "avatar": "https://dn-jsjpub.qbox.me/av/517aa4fe24290aa13800001395.jpg", "uid": "fk3a9EvKTu3KKmTqa2CisQ" } ``` -------------------------------- ### Get Form Settings Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/jinshuju-net-api.md Retrieves the settings for a specific form. Requires the `form_setting` scope. ```json { "icon": "fontello-sound", "color": "#afa373", "open_rule": "open", "permission": "public", "result_state": "closed", "result_url": null, "search_state": "closed", "search_url": null, "push_url": null, "success_redirect_url": "https://baidu.com", "success_redirect_fields": [ "field_2", "field_1" ] } ``` -------------------------------- ### 配置SDK打开窗口的方式 (tab) Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/jinshuju-net-sdk.md 在 `gdsdk.ready` 函数中调用 `gdsdk.config` 方法,并设置 `open` 选项为 'tab',以配置SDK打开的窗口在新标签页中打开。 ```javascript gdsdk.ready = function() { gdsdk.config({ open: 'tab' }); }; ``` -------------------------------- ### Get Enterprise User List API Response Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/jinshuju-net-api.md Example JSON response structure for the API endpoint that retrieves a list of users within an enterprise. ```json { "users": [ { "email": "email@mail.com", "nickname": "email@mail.com", "avatar": "https://dn-jsjpub.qbox.me/av/517aa4fe24290aa13800001395.jpg", "uid": "fk3a9EvKTu3KKmTqa2CisQ", "openid": "fk3a9EvKTu3KKmTqa2CisQ", "role": "admin", "status": "active", "authentications": [ { "provider": "identity", "uid": "uid" } ] } ] } ``` -------------------------------- ### 配置SDK打开窗口的方式 (inline) Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/jinshuju-net-sdk.md 在 `gdsdk.ready` 函数中调用 `gdsdk.config` 方法,设置 `open` 为 'inline' 并提供 `containerId`,以将SDK页面嵌入到指定的div容器中。 ```javascript gdsdk.ready = function() { gdsdk.config({ open: 'inline', containerId: 'gd_sdk_container', }); }; ``` -------------------------------- ### SDK Initialization Source: https://github.com/jinshuju/jinshuju-api-docs/blob/master/jinshuju-net-sdk.md Include this script in your HTML to initialize the Jinshuju SDK. Replace with your actual SDK App ID. ```APIDOC ## SDK Initialization ### Description Include this script in your HTML to initialize the Jinshuju SDK. Replace `` with your actual SDK App ID. ### Code ```javascript