API

For the implementation of the action on the service cFUD you can use the API functions. To send API requests to the server cFUD you need to generate apikey, authorized in his personal account.

All requests are accepted on the following url:
https://cfud.biz/api/

When performing each request must specify two required GET parameter apikey and command:
https://cfud.biz/api/?apikey=YOUR_KEY&command=COMMAND

Where apikey this key generated in your personal account, and command is one of the commands supported by the API. This parameter is required for any request, all other parameters are expected as a POST.

On any API request will be issued a response in JSON format, which will contain an array in a single format. Each response will contain an element with an index of response which will be general information about the state of the answer, the successful execution or an error.

For example, if you do not pass apikey, it will generate the corresponding error and the following reply will be issued:

{
    "response": {
       "status": 0,
       "message": "apikey not found"
    }
}

Where status is successful (1) or not successful (0) the command and the message contains a text transcript of the implementation status. If successful, the command (where "status": 1) if it involves the return of any of the data, the data will be added to the index, which will contain the data returned by the command.


List of commands:


Teams for the customer at single-defined tasks
Teams for the seller at single-defined tasks
Teams for the seller at unlimited tasks
Финансовые команды
  • getCurrency – Получить текущий курс валют


cNewTask
https://cfud.biz/api/?apikey=YOUR_KEY&command=cNewTask

This command creates a new task with the specified parameters and file. To execute the command, you must send a POST (multipart/form-data) request to the url.

Accepted POST parameters:

file_type
Required type, can be exe, dll, apk, js and php. The type depends on the cost of task file.

overlay

An optional parameter specifying the need to overlay registration at the crypt, in the absence of this setting, overlay will not be considered.

task_file

Required parameter file to be crypted.

In response, if successful, in addition to the status and messages, will be given tid (ID of the newly created task) in the data section, for example:

{
    "response":{…}
    "data":{
       "tid":1
    }
}


cTaskInfo
https://cfud.biz/api/?apikey=YOUR_KEY&command=cTaskInfo

The command returns the full information about the task

Accepted POST parameters:

tid
Required, task ID, which is necessary to receive the information.

In response, if successful, in addition to the status and messages, will be sent complete information about the job. If the task is on the search for candidates stage, as will be specified array (offers) with offers from performers. In addition, the command also returns a list of files (performer_files), loaded performer, if any.


cAcceptOffer
https://cfud.biz/api/?apikey=YOUR_KEY&command=cAcceptOffer

Using this command the customer can take the performer to the task.

Accepted POST parameters:

oid
Required, ID offer to be taken. This ID can be obtained using the command cTaskInfo, which returns information about the task, including list of offers.

In response, only the status and message.


cTasks
https://cfud.biz/api/?apikey=YOUR_KEY&command=cTasks

The command returns a list of tasks that are created owner api key

Accepted POST parameters:

Do not accept the parameters.

In response, if successful, in addition to the status and messages, will be given an array containing all the tasks that have been created by the user.


cCancelTask
https://cfud.biz/api/?apikey=YOUR_KEY&command=cCancelTask

The command cancels the task if it is to search for candidates stage

Accepted POST parameters:

tid
Required, ID task you want to cancel.

In response, only the status and message.


cCloseTask
https://cfud.biz/api/?apikey=YOUR_KEY&command=cCloseTask

The command closes the task in favor of the performer with the rating items.

Accepted POST parameters:

tid
Required, ID task, which must be closed.

grade
Required parameter estimation for the task, the number of -5 to 5.

In response, only the status and message.


cReturnsToWork
https://cfud.biz/api/?apikey=YOUR_KEY&command=cReturnsToWork

The command returns a task in the work.

Accepted POST parameters:

tid
Required, ID task, which must be returned to work.

In response, only the status and message.


cComplain
https://cfud.biz/api/?apikey=YOUR_KEY&command=cComplain

The command sends the tasks before the service in advance.

Accepted POST parameters:

tid
Required, task ID, which you need to send the administration.

In response, only the status and message.


cDownload
https://cfud.biz/api/?apikey=YOUR_KEY&command=cDownload

The command returns the requested file.

Accepted POST parameters:

fid
Required, file ID, which you need to download, the ID can be obtained upon request full information of a task, at which passed an array of file loaded performer, each file has a unique ID.

In response, if successful, in addition to the status and messages, will be given an array of the data file in the section, which will contain two elements of data (file content encoded in base64) and name (file name extension), for example:

{
    "response":{…}
    "data":{
       "file":{
           "data":"…",
           "name":"program.exe"
       }
    }
}
                


pOpenTasks
https://cfud.biz/api/?apikey=YOUR_KEY&command=pOpenTasks

The command returns a list of tasks available for perform owner apikey

Accepted POST parameters:

Do not accept the parameters.

In response, if successful, in addition to the status and messages, it will be transmitted to an array that contains all the tasks that are available for execution.


pWorkTasks
https://cfud.biz/api/?apikey=YOUR_KEY&command=pWorkTasks

The command returns a list of work tasks for api key holder

Accepted POST parameters:

Do not accept the parameters.

In response, if successful, in addition to the status and messages, will be given an array containing all of the user's task.


pSendOffer
https://cfud.biz/api/?apikey=YOUR_KEY&command=pSendOffer

Submitting offer to the task.

Accepted POST parameters:

tid
Required, task ID, which is sent to the proposal.

In response, only the status and message.


pTaskInfo
https://cfud.biz/api/?apikey=YOUR_KEY&command=pTaskInfo

The command returns the full information about the task. Same cTaskInfo command.


pLoadFile
https://cfud.biz/api/?apikey=YOUR_KEY&command=pLoadFile

The command allows you to load scrambled for the task file. To execute the command, you must send a POST (multipart / form-data) request to the url.

Accepted POST parameters:

tid
Required, ID assignment.

file
Required file.

In response, only the status and message.


pDownload
https://cfud.biz/api/?apikey=YOUR_KEY&command=pDownload

The command returns the requested file. Same cDownload command.


pUtaskInfo
https://cfud.biz/api/?apikey=YOUR_KEY&command=pUtaskInfo

The team returns the detailed info about the unlimited task

Accepted POST settings:

tid
Required setting, unlimited task ID, the information needs to be got

В ответе, при успешном выполнении, помимо статуса и сообщения, будет передана полная информация о задании. Команда так же возвращает список файлов в пуле и информацию о последнем файле на выдаче.


pLoadPoolFile
https://cfud.biz/api/?apikey=YOUR_KEY&command=pLoadPoolFile

The team allows to download an encrypted file

Accepted POST settings:

tid
Required setting, unlimited task ID

file
Required setting is an encrypted file

The status and the message in the reply only


getCurrency
https://cfud.biz/api/?command=getCurrency&direction=DIRECTION

Команда возвращает текущий курс по выбранному направлению.

Принимаемые параметры:

direction
Обязательный параметр, валютное направление, может быть одним из следующего списка:

  • usd_rub
  • usd_eur
  • btc_usd
  • btc_rub
  • btc_eur

В ответе, статус и сообщение, а так же поле amount, которое содержит значение текущего курса.