Thingworx: Get gauge state using REST API - thingworx

I created simple mashup:
I would like to get the state of the gauge at the picture using REST GET request. Could you, please, show me the pattern of doing this?

You could send a GET request with the correct headers (app key, content type and accept) to:
http:///Thingworx/Things/_HTTP_REST_Thing/Properties/nameOfProperty
here is the REST cheat sheet:
https://developer.thingworx.com/resources/guides/thingworx-rest-api-core-concepts/rest-design

Related

Using Microsoft Access VBA to Update Teamup Calendar via API

I'm an experienced VBA programmer but have little experience with API's.
My goal is to use VBA to add an event to a Teamup calendar with the click of a button. The required data is present in the database, I have a Teamup API key and Teamup has provided the following rules:
API access MUST be done over TLS/SSL via https://api.teamup.com/
All API requests must include an API key in a request header
Strings in requests and responses MUST be using the UTF-8 character set
Successful responses will have status codes in the 200-299 range
Client errors will have status codes in the 400-499 range
Server errors will have status codes in the 500-599 range
Placeholders in URL examples are indicated by curly braces, e.g. {eventId}
API responses are in JSON using the application/json content type
Any help figuring this out, or in pointing me to the right resources would be appreciated.
I've played around with CreateObject("MSXML2.XMLHTTP"), but not sure if I'm on the right track.
In advance, thank you!

How to make api get requests from dukascopy?

I have an api key but i'm not sure on how to make an get request using their api.
The documentation is a bit vague on how to format the url, any help is appreciated!
Documentation:
https://www.dukascopy.com/trading-tools/api/documentation/quotes
To use the API you just need to append your key in the URL like,
https://freeserv.dukascopy.com/2.0/?path=api/lastOneMinuteCandles&key={you_api_key}
Another example,
https://freeserv.dukascopy.com/2.0/?path=api/currentPrices&key={api_key}&instruments=EUR/USD,USD/JPY
You can use Postman, and should see some values come back (since my key is not valid, I got 401).

OpenSea API returning null when i want to fetch my data

when i go to this link
https://api.opensea.io/api/v1/assets?asset_contract_address=0x892848074ddea461a15f337250da3ce55580ca85
It returns me some data i can use. But when i tried to fetch MY assets its not return any data from this link.
https://api.opensea.io/api/v1/assets?owner=0xA48Db0a225703b25ef95B863C1aa44929bBA7FDe
You can see my assets from this link
https://opensea.io/M1croNFT
How can i fetch my assets data with opensea api?
Most likely, your problem is that to use the api/v1/assets method. For this request you need to use the api key. This is written in the description of the method in the documentation.
GET api/v1/assets
Please Note: This API endpoint requires an API key to use. Please fill
out the API request form to obtain one. Request an API key
So, I think that if you get the key, you will be able to fulfill any request
Another option is to use queries in the test network - OPENSEA TESTNETS API. I tried to run a query there and got the correct response.

Zapier Webhooks add data to default payload

I am setting up a Zap on Zapier and i have been trying to send a payload from Shopify(create order) to a Webhook which is sending data to an API. The problem i am having is adding data to the default payload(all data). I want to send all the data from the payload plus some additional attributes which i am configuring on the Data section, but this replaces the default-all data.
Is there a way to add a value to all the payload? I know i have the option to add the value by header or query string but i would like to add to the body instead. I am currently viewing the custom request but it seems complicated to configure the whole request to just add one value.
Thanks in advance.
David here, from the Zapier Platform team. This is a great question!
The short answer is that it's not possible to do quite what you want. You'll need to map each property into that data box like you're doing and add the custom properties you want.
That said, we track all feature requests that come in through tickets, so if you'd like to voice your support and get notified if/when this does get implemented, I'd suggest emailing in to contact#zapier.com.

Github API - trying to access multiple pages of /users

I am playing around with Github's API and I noticed that they allow anyone to request all users that have signed up in chronological order.
https://api.github.com/users
http://developer.github.com/v3/users/
I was trying to get the second page but for some reason their pagination isn't working for me. I wasn't sure what I was doing wrong.
https://api.github.com/users?page=2
https://api.github.com/users?start_page=2
http://developer.github.com/v3/ Under "Pagination".
Anyone know the right way to do this?
Check out the returned HTTP headers for the https://api.github.com/users resource. Specifically, look for the Link header, which will look like this:
Link:<https://api.github.com/users?since=135>; rel="next", <https://api.github.com/users{?since}>; rel="first"
So, what you need to do is do an HTTP GET on https://api.github.com/users?since=135 to get the next page. After that, check the Link header again and you will get to the next page, etc. Also notice the provided URI template https://api.github.com/users{?since} which enables you to start at any id.