signatures for autodesk checklist - autodesk

Doe's anyone know how to get the signatures for a checklist in the response from a checklist?
I'm making a request to the following endpoint and was hoping to see a "Section_item" for the signatures, however, this data is not being returned in the response body.
https://developer.api.autodesk.com/bim360/checklists/v1/containers/:containerId/instances/:ChecklistId?include=,sections.items,sections.items.attachments
Is there a separate endpoint I need to hit to get the Signature information for a given check one that includes the urn for the image of the checklist would be highly useful?
any help would be greatly appreciated.

Related

Github Automerge Failure Notification (API v4 GraphQL mutation enablePullRequestAutoMerge)

at my company we want to make use of the relatively new API feature "Automerge" (not through a UI but through an API call),
However we can't seem to find any documentation of a webhook (or other asyc way) of finding out if a merge request failed and why,
anyone know a way to receive such a notification?
Thanks! :)
Hope this saves some work for someone out there,
we asked Github.com support directly and they said there was no async / webhooky way of doing this (as of Nov 2021).
Here's a quote from the support person when asked if there were a way to find out, here's what they wrote:
There wouldn't be a great way to discern that (reason for failure) and
it may be better when you see that, to use the REST API to Get the
Pull Request to get some additional information.
looking at the documentation as suggested in the quote above it seems that through the "closed" action and "merged" key one could discern whether a merge was successful or not, but without any further information about the failure.

JSON Post to a url

I need to start with a new project where I need to get data from firebase. The programmer for the firebase app wants to post the data to me in JSON to a url. I have experience in PHP but I have no idea how to create this url to where he must post. Can someone please point me in the direction to go? Must I create a page on my website or what must I do here?
Help will be greatly appreciated.
I think you should start looking at creating a rest api on a server (I havent worked with php so dont know the best practices there but got this when i googled)
The rest api can then handle the post request and then save the data into firebase.

How to find site’s JSON APIs/URLs?

I remember coming across APIs/URLs like: http://www.testsite.com/students.json, which returns a JSON response, and read somewhere that you can find it via e.g. Chrome dev tool under Network tab.
Where/how can I find the JSON APIs/URLs? Would ultimately use requests to fetch the JSON.
The best place to find out about a JSON-based API is the documentation provided by API's maintainer. Typically, maintainers who would like their API to be consumed by clients provide documentation. Sometimes, they build a navigable API where responses have http links to other resources of their API and do not provide an explicit documentation. If they do so, that could be called as implicit documentation.
Networks tab in a web browser's developers' tools provides a way to capture network traffic going in and out of the browser. If a website makes any asynchronous http request, that will be captured and shown here. Again depending on the design and strategy of the website maker, this could be a JSON based response coming from a URL or a HTML or any other type. Content-Type header hints at the type of response. You can use this cue as well to see if the content of the response is application/json. Thus, obtaaining a url that you can use in your scripts.
What you are trying to do here is observing a website's network traffic from your browser and are trying to see if there is any link that brings you a JSON based response instead of HTML. So, that you can use a JSON parser instead of a HTML parser. Possibly, because HTML parsers are slow.
The Answer to your specific question is, if you get lucky you might find a link that serves a JSON response. If not, you might wanna fall back on HTML parsing.

CloudTrax - Authenticate Client

My question is somewhat related to the following question already posted:
CloudTrax - Programmatically authenticate client?
I am extremely new to CloudTrax. I have read their documentation related to HTTP Authentication, which I understand for the most part, but I must admit that I'm uncertain where or how to send the "ACCEPT message". Does this need to be sent back to CloudTrax? Is there an API endpoint that I haven't found in their documentation?
If anybody could clarify this for me, it would be greatly appreciated.
Thank you in advance!
Very late response, but hope it may help.
ACCEPT is a response given by a RADIUS. In other words, the RADIUS will decide whether to authenticate the client, based on the details (ie. username / passwords) sent.
The access point will keep track of who's authenticated and who's not, requesting access from the RADIUS when necessary.

How to make basic REST API calls using a browser

I am trying to get started with REST API calls by seeing how to format the API calls using a browser. Most examples I have found online use SDKs or just return all fields for a request.
For example, I am trying to use the Soundcloud API to view track information.
To start, I've made a simple request in the browser as follows http://api.soundcloud.com/tracks/13158665.json?client_id=31a9f4a3314c219bd5c79393a8a569ec which returns a bunch of info about the track in JSON format
(e.g. {"kind":"track","id":13158665,"created_at":"2011/04/06 15:37:43 ...})
Is it possible to only to get returned the "created_at" value using the browser? I apologize if this question is basic, but I don't know what keywords to search online. Links to basic guides would be nice, although I would prefer to stay out of using a specific SDK for the time being.
In fact, it's really hard to answer such question since it depends on the Web APIs. I mean if the API supports to return only a subset of fields, you could but if not, you will receive all the content. From what I saw on the documentation, it's not possible. The filters only allow you to get a subset of elements and not control the list of returned fields within elements.
Notice that you have a great application to execute HTTP requests (and also REST) in Chrome: Postman. This allows to execute all HTTP methods and not only GET ones and controls the headers and sent content and also see what is received back.
If you use Firefox, Firebug provides a similar thing.
To finish, you could have a look at this link to find out hints about the way Web APIs work and are designed: https://templth.wordpress.com/2014/12/15/designing-a-web-api/.
Hope it helps you and I answered you question,
Thierry
Straight from the browser bar you can utilize REST endpoints that respond to a GET message. That is what you are doing when you hit that URI, you are sending an HTTP GET message to that server and it is sending back a JSON.
You are not always guaranteed a JSON, or anything when hitting a known REST endpoint. What each endpoint returns when hit with a GET is specific to how it was built. In that case, it is built to return a JSON, but some may return an HTML page. In my personal experience, most endpoints that utilize JSON returns expect you to process that object in a computer fashion and don't give you a lot of options to get a specific field of the JSON. Here is a good link on how to process JSON utilizing JavaScript.
You can utilize REST clients (such as the Advanced REST Client for Chrome) to craft HTTP POST and PUT if a specific REST endpoint has the functionality built in to receive data and do something with it. For example, a lot of wiki style REST endpoints will allow you to create a page with a specifically crafted HTTP POST with either specific header information, URI parameters or a JSON as part of it.
you can install DHC client app in your chrome and send request like put or get