Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta API for hackfoldr #35

Open
debuggingfuture opened this issue Aug 17, 2014 · 3 comments
Open

Meta API for hackfoldr #35

debuggingfuture opened this issue Aug 17, 2014 · 3 comments

Comments

@debuggingfuture
Copy link

Something like http://hackfoldr.org/hackathon/meta, which will provides the basic info like

{
 files:[
    "subfolder1":{
       "title" :"Projects"
       files:[
            "Hackpad for project 1": "http://www.hackpad.com/project1"
       ]
    },
    "About": "http://www.hackathon.com/about"
  ]
}

Use case:
We are building hackfoldr-mobile
To open a hackfoldr, we either

  1. scrap / invoke api of a running Hackfoldr to get the links it provides
  2. use the same mechanism as hackfoldr to get from google spreadsheet or ethercalc

We now have 2) for google spreadsheet, which one of the benefit is not to rely on centralized site like hackfoldr.org.
Meanwhile in the long run it might be hard to maintain the spreadsheet parsing logic across hackfoldr1, 2 and mobile version

Any thoughts?

@jessy1092
Copy link
Member

Look like this?
for example: http://hack.etblue.tw/welcome-to-hackfoldr

Would be: (Updated)

{
    title: "歡迎光臨 hackfoldr",
    link: "",
    folder: [
        {
            title: "hackfolder 2.0 教學 - 基礎篇",
            link: "https://g0v.hackpad.com/welcome_to_hackfoldr?r=1#Hackfoldr-2.0-",
            folder: []
        },
        {
            title: "hackfoldr 2.0 功能列表",
            link: "https://g0v.hackpad.com/0.jmm9642fog5vcxr",
            folder: []
        },
        {
            title: "hackfoldr 2.0 專案開發文件",
            link: "https://g0v.hackpad.com/Hackfoldr-2.0-7TMSpXasDWl",
            folder: []
        },
        {
            title: "測試 subfoldr",
            links: ""
            folder: [
                {
                    title: "測試 link item",
                    link: "http://logbot.g0v.tw/channel/g0v.tw/today",
                    folder: []
                }
            ]
        }
    ]
}

@debuggingfuture
Copy link
Author

yes this looks good!
for me I'm quite sure how is hackfoldr handling the backend routing now

@jessy1092
Copy link
Member

@vincentlaucy Ethercalc have the new API for sheet.
It will dump JSON array. http://docs.ethercalc.apiary.io/#get-%2F{id}.csv.json

And Ethercalc also support multi-sheet. irc log
It may be used to collect multi-hackfoldr.

example: https://ethercalc.org/g0vMulti
multi-sheet: https://ethercalc.org/=g0vMulti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants