Support

if you have any questions please send us email to info@repetiti.com

Step by Step Using Api

  1. First you need to get Api access token (user_data) with login_of_client ()
  1. You should send user_data in every api request
  1. That’s it ✅ If you have any questions or feature requests, you can send email to info@repetiti.com
 

 

Get Api Access Token (user_data information)

Method: POST
Parameters: email,password
Response Parameters(json): is_successfull,user_data
 
Example Curl Request
Example Python Request
 

Send Printer An Operation

Method: POST
Parameters: user_data, id_of_operation(random string) , selected_operation(available operations can reached from /api_get_available_operations endpoint), …… (other parameters required for operation such as temperature)
Response parameters: response, id_of_operation(sent by your request)
 
Example Curl Request
Example Python Request
 
 


Get All Products

Method: POST
Parameters: user_data
Response parameters: is_sucessfull, products
 
Example Curl Request
Example Python Request
 

Get Printers

Method: POST
Parameters: user_data
Response parameters: is_sucessfull, company_printers
 
Example Curl Request
Example Python Request
 

Get Printers Temperature Logs

Method: POST
Parameters: user_data
Response parameters: is_sucessfull, printer_temp_logs
 
Example Curl Request
Example Python Request
 

 

Update Any Fields Of Products

 
Method: POST
Requeired Parameters: user_data, stock_code
Optional Parameter: quantity,will_be_procoduced_count,delete_days_after_last_edit, gcode_of_product_as_string ... etc.
Header: application/x-www-form-urlencoded
 
Example Curl Request
Example Python Request
Example Python Json Request
 

Add Product

Method: POST
Requeired Parameters: user_data, stock_code, product_color, gcode_of_product_as_string (must be string. "\n" must be at the end of the lines Example: G28\nG28\G28 ), delete_days_after_last_edit(if you want product to be deleted after a time you can send integer or None)
Response: Okay or error Detail
Header: application/x-www-form-urlencoded
 
Example Curl Request
Example Python Request

Add System Product To Products

Method: POST
Requeired Parameters: user_data, stock_code, product_color, will_be_procoduced_count, id_of_system_product, filament_extrusion_temp, bed_temp
Response: is_successfull, reason(if there is an error, take a look at this field )
Header: application/x-www-form-urlencoded
 
Example Curl Request
Example Python Request
 
 

Get Logs Of Company

Url: app.repetiti.com/api_get_logs_of_company
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data
Optional Parameters: date_interval (Ex: 2021-01-18+_+2021-01-25 )if no date_interval is given todays logs will be displayed,delete_days_after_last_edit
Response: is_successfull,last_printer_logs
Example Curl Request
Example Python Request
 

Get Single Product Information

Url: app.repetiti.com/api_get_product_information
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data,stock_code
Response: is_successfull,product
Example Curl Request
Example Python Request
 

Get Printer

Url: app.repetiti.com/api_get_printer
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data,printer_id
Response: is_successfull,printer
Example Curl Request
Example Python Request
 

Get Printer Queue Jobs

Url: app.repetiti.com/get_printer_queue_jobs
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data
Response: is_successfull,printer_queue_jobs
Example Curl Request
Example Python Request
 

Get Last Picked Products

Url: app.repetiti.com/api_get_last_picked_products
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data
Response: is_successfull,last_printer_logs
Example Curl Request
Example Python Request
 

Get Last Picked Products And Completed Farm Orders

Url: app.repetiti.com/api_get_last_picked_products_and_completed_farm_orders
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data
Response: is_successfull,last_printer_logs
Example Curl Request
Example Python Request
 

Add Printer Queue Job

Url: app.repetiti.com/add_printer_queue_job
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data,stock_code,printing_priority(small values will be printed first)
Optional Parameters: printer_id(to send product to special printer)
Example Curl Request
Example Python Request
 

Delete Printer Queue Job

Url: app.repetiti.com/delete_printer_queue_job
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data,created_at
Example Curl Request
Example Python Request
 

Edit Printer Queue Job

Url: app.repetiti.com/edit_printer_queue_job
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data, created_at, printing_priority
Example Curl Request
Example Python Request
 

Get Farm Order

Url: app.repetiti.com/api_get_farm_order
Method: POST
Header: application/x-www-form-urlencoded
Required Parameters: user_data, order_number
Example Curl Request
Example Python Request
 

Print From Api

Url: app.repetiti.com/print_from_api
Header: application/x-www-form-urlencoded
Method: POST
Post Parameters: user_data, product_id, stock_code, gcode_url, printer_id, id_of_operation(random number), gram_of_filament_will_be_used,
 

Get Printer Commands From Api

Url: app.repetiti.com/get_printer_commands_from_api
Header: application/x-www-form-urlencoded
Method: POST
Post Parameters: user_data, printer_id
 
 
 

Start Printer CheckUp

Url: app.repetiti.com/printer_checkup
Header: application/x-www-form-urlencoded
Method: POST
Post Parameters: user_data, printer_id, request_type(which should be start_check_up), filament_type (can be highmediumlow according to your filament type temperature)
 
 
 

Simple Motor Control

Url: app.repetiti.com/simple_motor_control
Header: application/x-www-form-urlencoded
Method: POST
Post Parameters: user_data, printer_id, operation_type (can be x_position_increasey_position_increasez_position_increaseextrudex_position_decreasey_position_decreasez_position_decreaseretractx_y_homez_homemotors_offfan_onfan_off) , amount(can be 1 or any number you choose)



 
 

CALLBACKS

 

Callback For Automatically Print

Headers:{'content-type': 'application/json'}
Method: POST
Post Parameters: printer_id, printer_color, company_printers
Required Json Response Parameters: gcode_url, product_id, stock_code, product_location,gram (how many gram of filament will be used)
Note: if there is no product to print {} should be returned
 

Callback For Products Picked From Printer

 
Headers:{'content-type': 'application/json'}
Method: POST
Post Parameters: product_id, stock_code, produced_count, faulty_produced_count, printer_id
Required Json Response Parameters: product_id, stock_code, product_location
 
 
badge