MyDay sosial şəbəkə - Developers
MyDay sosial şəbəkə - Developers
API Documentation
Name Values Description
type user or page This parameter tell us what type of query you are requesting for, users, pages e.t.c
ID Type ID e.g 1,2 e.t.c This parameter tell us which item of the query type you are requesting for
get profile or posts This parameter tell us which information you want from the item. see below Profile : the following field are return for user type
  1. fullname: User fullname
  2. username: User username
  3. genre: User genre [Female|Male]
  4. bio: User bio info
  5. Country: User country
  6. avatar: User profile photo
  7. verified: If user is verified or not
  8. cover: User profile cover photo
Profile result for page
  1. title: Page title
  2. slug: Page slug
  3. category:Page category
  4. description: Page Description
  5. website: Page website
  6. logo: Page logo
  7. verified: If page is verified or not
  8. cover: Page profile cover photo
Posts: The following field are return for both type
  1. text: Post text
  2. user_id: Post user_id
  3. e.t.c
EXAMPLE OF REQUEST:

For profile information from a user
http://myday.az/api/?type=user&id=[userid]&get=profile

For posts from a user
http://myday.az/api/?type=user&id=[userid]&get=posts

For profile information from a page
http://myday.az/api/?type=page&id=[userid]&get=profile

For posts from a page
http://myday.az/api/?type=page&id=[userid]&get=posts