Add photo to an album

Brief description:

  • Add photo to a album

Endpoint

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
album_guid Yes integer Album guid in which photo will be created
guid Yes integer UserID, Album owner
ossnphoto Yes array A photo file, it will be accessed by $_FILES['ossnphoto']

Example Response

{
    "merchant": "Open Source Social Network",
    "url": "http:\/\/www.mywebsite.com\/",
    "time_token": 1569319643,
    "payload": {
		'guid': 123,
	},
    "code": "100",
    "message": "Request successfully executed"
}

Return payload parameter description

Parameter name Type Explain
guid integer Will contain the newly created photo GUID

Remarks

  • if photo is failed to create you will get error code 200

Services View All