Upload data from external website using API

40 views
Skip to first unread message

ceyhun derinboğaz

unread,
Sep 27, 2013, 7:58:40 AM9/27/13
to botq...@googlegroups.com
Hello,

I just started experimenting with botqueue and I wonder if it is possible to upload files directly from another Web application. Like when a payment is made, Stl file will be directly uploaded to botqueue.com and create a new job for printing.

Is that possible? I didn't see a function named upload in API documentation page.

By the way thanks for this great tool!

Zach 'Hoeken' Smith

unread,
Sep 27, 2013, 9:24:00 AM9/27/13
to botq...@googlegroups.com
Yup, there is! Check the python client. There is a API test file that shows it being used. You can use a URL or upload the file directly. One of the guys on this list has even set up something like that. 
--
You received this message because you are subscribed to the Google Groups "BotQueue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botqueue+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--

----

Zach Hoeken Smith

Twitter: @hoeken  Skype: chilldude22
QQ: 1489598623  China: +86-186-8209-7069

ceyhun derinboğaz

unread,
Sep 27, 2013, 12:06:07 PM9/27/13
to botq...@googlegroups.com
Thank you! Do you mean the file inside bumblebee called botqueueapi.py ?



27 Eylül 2013 Cuma 16:24:00 UTC+3 tarihinde Zach Smith yazdı:
Yup, there is! Check the python client. There is a API test file that shows it being used. You can use a URL or upload the file directly. One of the guys on this list has even set up something like that. 

On Friday, September 27, 2013, ceyhun derinboğaz wrote:
Hello,

I just started experimenting with botqueue and I wonder if it is possible to upload files directly from another Web application. Like when a payment is made, Stl file will be directly uploaded to botqueue.com and create a new job for printing.

Is that possible? I didn't see a function named upload in API documentation page.

By the way thanks for this great tool!

--
You received this message because you are subscribed to the Google Groups "BotQueue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botqueue+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Zach 'Hoeken' Smith

unread,
Sep 27, 2013, 1:55:35 PM9/27/13
to botq...@googlegroups.com
Nope, its called apitest.py


----

Zach Hoeken Smith

Twitter: @hoeken  Skype: chilldude22
QQ: 1489598623  China: +86-186-8209-7069


To unsubscribe from this group and stop receiving emails from it, send an email to botqueue+u...@googlegroups.com.

ceyhun derinboğaz

unread,
Nov 3, 2013, 10:37:56 AM11/3/13
to botq...@googlegroups.com
Hello,

I am experimenting with the apitest.py file but unfortunately I cannot make it work. Should I run it on a server or raspberry pi?

I got an error like this after changing variables;

Traceback (most recent call last):

  File "apitest.py", line 39, in <module>

    a.main()

  File "apitest.py", line 18, in main

    self.printJobs(jobs)

  File "apitest.py", line 34, in printJobs

    for job in jobs["bb"]:

KeyError: 'bb'



A little bit explanation about how to use API would be wonderful! 


Thanks :)


27 Eylül 2013 Cuma 20:55:35 UTC+3 tarihinde Zach Smith yazdı:

Zach 'Hoeken' Smith

unread,
Nov 5, 2013, 1:39:11 AM11/5/13
to botq...@googlegroups.com
can you attach the modified file?  the apitest.py file contains a few different examples of api calls.  if you just want to upload a new job, you'll want something like this.

this is just a python script, so you can run it on any python environment you want - a server, a pi, or your desktop.


----

Zach Hoeken Smith

Twitter: @hoeken  Skype: chilldude22
QQ: 1489598623  China: +86-186-8209-7069


apitest.py
Reply all
Reply to author
Forward
0 new messages