Skip to content

maquigu/media-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediaManagerService

The Media Manager API is an HTTP, JSON-based API. For a mobile application example that uses this API, please refer to the Evrybit project: http://getevrybit.com/

1. Signup
URL: /signup
Method: POST 
Request:
{“signup”:
     {
    “email”: XYZ,
    “password”: XYZ
     }
}
Response:
{“signup”:
    {
    “response”: “true” | “false”,
    “status”: XYZ,
    “user_id”: ABC
    }
}

2. Signin
URL: /signin
Method: POST 
Request:
{“signin”:
    {
    “email”: XYZ,
    “password”: XYZ
    {
}

Response:
{“signin”:
    {
    “response”: “true” | “false”,
    “status”: XYZ,
    “session_id”: XYZ,
    “user_id”: ABC
    }
}

2. Facebook Signin
URL: /fb_signin
Method: POST 
Request:
{“fb_signin”:
    {
    “fb_id”: ,
    “fb_name”: ,
    “fb_birthdate”: ,
    “fb_locale”: ,
    “fb_location”: ,
    “fb_language”: ,
    “fb_gender”: 
    {
}

Response:
{“fb_signin”:
    {
    “response”: “true” | “false”,
    “status”: XYZ,
    “session_id”: XYZ,
    “user_id”: ABC
    }
}

3. Submit Post
URL: /submit_post
Method: POST 
File Naming Convention (same as post_id): post:
Request:
{“submit_post”:
    {
           “post_id”: ,
    “session_id”: XYZ,
    “user_id”: ABC,
    “story_id”: ,
    “media_type”: “audio|video|photo|text”,
    “media_url”: ,
    “description”: “ABC”
“title” : “titulo”,
“body”: “cuerpo”
    {
}

Response:
{“submit_post”:
    {
    “response”: “true” | “false”,
    “status”: XYZ,
    “session_id”: XYZ
    }
}


4. News Feed
URL: /news_feed/session_id/
Method: GET 
Response:
{“news_feed”:{
    “status”: ,
    “session_id”: ,
    “feed”: [
        {
            “story_id”: ,
            “position”: ,
            “story_image”: ,
            “URL”: ,
            “contributions”: ,
            “reads”: ,
            “shares”: ,
            “creator”: {
                “user_id”: ,
                “user_image_url”: 
            },
        },
        {
            “story_id”: ,
            “position”: ,
            “URL”: ,
            “contributions”: ,
            “reads”: ,
            “shares”: ,
            “creator”: {
                “user_id”: ,
                “user_image_url”: 
            },
        }
    ]
}

5. Story Feed
URL: /story_feed/
Method: GET 
Response:
{“story_feed”:{
    “story_id”: ,
    “position”: ,
    “URL”: ,
    “contributions”: ,
    “reads”: ,
    “shares”: ,
    “creator”: {
        “user_id”: ,
        “user_image_url”: 
    },
“posts”:[
        {
            “post_id”: ,
            “media_type”: “audio|video|photo|text”,
            “URL”: ,
            “user_id”: ,
“title” : ,
“body”: 
},
{
            “post_id”: ,
            “media_type”: “audio|video|photo|text”,
            “URL”: ,
            “user_id”: ,
“title” : ,
“body”: 
}
    ]
}

About

Media Manager Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages