Odessa Content Sharing  





  Register now   Forgot password ?

LoginUser

First authorization

Web service URL 

http://localhost/CheapSender/webservices/?service=LoginUser&api_version=1

JSON FORMAT

[
    {
        "email":"anarmamedov6@gmail.com",
        "password" : "MyPassword123"        
    }
]

ERROR MESSAGE EXAMPLE

[{
    "error_code":"2",
    "error_text":"Variable \"email\" not found on post",
    "error_short":"DataVarNotFound"
}]

SUCCESS MESSAGE EXAMPLE

{"id":"51",
"name":"Anar",
"surname":"Mamedov",
"cell":"+994003001229",
"email":"elshanb@gmail.com",
"password":"973d98ac221d7e433fd7c417aa41027a",
"city":"Baku",
"address_actual":"Baku here is address",
"address_offical":null,
"country":"Azerbaijan",
"use_location":null,
"gender":null,
"paypal_email":null,
"inserted_by":"-500",
"inserted_date":"2017-04-01 20:43:40",
"update_by":null,
"updated_date":null,
"merital_status":null,
"referal_name":null,
"referal_cell":null,
"idcard_img1":null,
"idcard_img2":null,
"idcard_number":null,
"idcard_exp_date":null,
"self_img":null,
"qst_health":null,
"qst_disability":null,
"qst_criminal":null,
"qst_sexsual":null,
"is_approved":"0",
"avail_status":null,
"log_session_key":"EFFEED41-77A5-4DB7-B6EB-B6BC0E9584472017040120430",
"log_device_id":"deviceid123",
"log_user_argent":"Mamedov",
"log_date":"2017-04-01 20:43:40",
"is_disabled":"0",
"approve_guid":"FBCA697F-6AF6-46F7-BD92-FF49D85D69BC2017040120430",
"approved_by_admin":0}

Screen

 

Details of the fields will be described on the next steps

Accept rules
( reading rules before accepting )
Chats
( Web services for sending chat messages )
Notifications
( All about notifications )
Access Management
( All services about access management )
Dictionaries
( Services for managing dictionaries )
Packages
( Working on packages )
User ratings and reviews
( Rating couriers and writing reviews )
Courier routes
( Web services about setting routes for couriers )
Payments
( Web services for working with payments )
Feedbacks
( accepting feedbacks from couriers and senders )
F.A.Q.
( Frequently asked questions (FAQ) )

LoginUser
First authorization

RegisterSender
Web service that need to be used for registering sender

GetUserInfo
Web service for getting the details of user

Update Sender
Web service for updating Sender information

RegisterCourier_GenInfo
Register of Courier : Step 1

UpdateCourier_GenInfo
Web service for updating general information of Courier if needed

UpdateCourier_IDCard
Register of Courier : Step 2 - Updating ID Card images

UpdateUser_SelfImg
Register of Courier : Step 3 - Updating Self image

ModifyUserTransportTypes
Register of Courier : Step 4 - Modifying transport types

GetUsersTransportTypes
Register of Courier : Step 4 - Selecting the list of transport types

AddNewTransport
Register of Courier : Step 5 - Adding new transport

DeleteTransportImageById
Register of Courier : Step 5 - Deleting transport image

DeleteUserTransportById
Register of Courier : Step 5 - Deleting transport by ID

AddNewTransportImage
Register of Courier : Step 5 - Add image of transport

GetTransportImagesByTransportId
Register of Courier : Step 5 - Receiving the list of transport images

GetUserTransports
Register of Courier : Step 5 - Receiving information of all transports

DeleteUserTransportById
Register of Courier : Step 5 - Deleting transport by ID

AddUserIns
Register of Courier : Step 6 - Addin new insurance card to transport

GetUserIns
Register of Courier : Step 6 - Receiving all data about insurance card

DeleteUserInsById
Register of Courier : Step 6 - Deleting insurance card by id

UpdateUserIns
Register of Courier : Step 6 - Updating insurance card

DeleteUserInsByTransportId
Register of Courier : Step 6 - Deleting insurance card

UpdateCourier_Questions
Register of Courier : Step 6 - Updating questions

SendApproveEmailToCourier
This web service can be using for sending email for approving registration

SendApproveEmailToSender
This web service can be using for sending email for approving registration of Sender

ApproveUser
This web service can be using for approving user after receiving registration email

ChangePasswordByGuid
Should be using for changing password after receiving forgot email

ChangePassword
Should be using for changing password from interface

CreateSenderProfile
Should be used for creating a new Sender profile if person is already Courier

MakeDefaultProfile
Should be used for making one of the profiles (sender or courier) loaded by default

ResendProfileForAdminApprove
Should be used for resending Courier profile to admin approve again , if admin rejected

SendForgotPasswordEmail
Should be used for sending forgot email to user for restoring password

CreateCourierProfile
Should be used for creating a new Sender profile if person is already Sender

UpdateUsersDrivingLis
Register of Courier : Step 5 - Adding and Updating driving lisence

GetUsersDrivingLis
Register of Courier : Step 5 - Get the list of driving lisence

UpdateUserGeoLocation
Update geo location of courier every 10 mins

UpdateUserAvailStatus
Update availibliy status of user

UpdateBankAccount
this web service is using for creating bank account on local and stripe

UpdateUserInsGen
this web service is used for adding insurance after creating transport

GetUserInsGen
This web service is using for getting insurance details of user

GetUserInfoByID
web service for getting information about any user ( will be limited by acces)