Giter Site home page Giter Site logo

apikey's People

Contributors

awk avatar eak24 avatar fluviolobo avatar gol10dr avatar lararosekelley avatar mbraunsteinonshape avatar mnoyes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apikey's Issues

Request #185041: copyelement response has no text

The response body is empty for the "copyelement" call. I get a 200 status code, and onshape.py gets to line 210 but res.text is empty.

As the API Explorer outlines in the UI, I am expecting the following response:
angleUnits
elementType
id
lengthUnits
name
thumbnailInfo
thumbnails
type

Question about downloading public stl models from Onshape?

Wish to download an stl file. Currently using a simple approach:
https://partner.dev.onshape.comapi/documents/d/405396d32ddaf0ae85bbb381/w/84cb220a3415aedfaf4c4c02/e/e02c7ca6c5bc16dd26949153/export?units=inch&scale=1&mode=binary&format=STL

Getting max retries:
Max retries exceeded with url: /documents/d/405396d32ddaf0ae85bbb381/w/84cb220a3415aedfaf4c4c02/e/e02c7ca6c5bc16dd26949153/export?units=inch&scale=1&mode=binary&format=STL

Any clues?
This is what the code looks like:

Here is another code sample:payload = {'format': 'STL', 'mode': 'binary', 'scale': '1', 'units': 'inch'}
response = self._api.request('get', 'api/documents/d/' + did + '/w/' + wid + '/e/' + eid + '/export', query=payload, download=True)

[download] controls streaming = True.

License

I noticed this repo does not have an MIT license, whereas most of your repos do. Assuming this is inadvertent, would you mind changing your license to MIT? I'd like to build off of the Python API.
Thanks.

Python client returns TypeError when uploading STEP file

I tried to use the Python API client from https://github.com/onshape-public/apikey/tree/master/python. I have it setup correctly as I retrieve all the documents in my workspace. I then try and call:

c.upload_blob("fab53b5336649854f782cb0e","37c8c8477dee70a4f6fb1ad4", "/Users/ronanbarrett/Downloads/wing_finish.step")

This results in an error as the MIME type for STEP cannot be mapped to something known. The error is:

Traceback (most recent call last):

File "app.py", line 23, in

print (c.upload_blob("fab53b5336649854f782cb0e","37c8c8477dee70a4f6fb1ad4", "/Users/ronanbarrett/Downloads/wing_finish.step"))

File "/Users/ronanbarrett/go_development/src/github.com/onshape/apikey/python/apikey/client.py", line 194, in upload_blob

payload += 'Content-Type: ' + mimetype + '\r\n\r\n'

TypeError: cannot concatenate 'str' and 'NoneType' objects

Unable to download stl files with apikey?

Using the api to download stl files results in access denied?
I'm doing

    headers = {'Accept' : 'application/vnd.onshape.v1+octet-stream'}
    payload = {'format': 'STL', 'mode': 'binary', 'scale': '1', 'units': 'inch'}
    response = self._api.request('get', '/api/documents/d/' + did + '/w/' + wid + '/e/' + eid + '/export', headers=headers, query=payload, stream=True)

requirement not updated

I found some issues in the installation of the requirements using ubuntu 20.04.
The requirements.txt is not update with the new version or the modules

Instruction not viable for Win

Hello,

I was wondering if the instructions below were not meant for Windows.
I Forked the repo. and made some modifications that allowed me to complete the setup process and ran the example python programs. I summarized the steps on a new version of the README file and created a new requirements-win.txt file (both are attached on the win-sol.zip).

win-sol.zip

Would this be useful to add to the main branch?
Am I missing something?

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.