Refund a transaction via the measurement protocol - Not Working - google-analytics

I'm trying to refund a transaction via the measurement protocol. I'm using the following with a POST request:
http://www.google-analytics.com/collect/?v=1&t=event&tid=UA-XXXX&cid=555&ec=Ecommerce&ea=Refund&ni=1&ti=12345&pa=refund
The response code was a 200, however, I did this last week and the refund still isn't showing - so it's not worked.
The tid parameter is updated with my analytics account ID and the ti parameter is the order number.
What am I doing wrong?

Related

How to increase the number of request limit per day for linkedin creative api endpoint?

Linkedin Creative API endpoint request limit per day seems to be dropped from 1 million requests to 5000 requests.
The API returns the response after the 5000 request limit is raised - HTTP-error-code: 429, Error: Resource level throttle APPLICATION DAY limit for calls to this resource is reached.
Earlier Base URL API endpoint with 1 million requests - https://api.linkedin.com/v2/adCreativesV2. Reference
Latest Base URL API endpoint with 5000 requests - https://api.linkedin.com/rest/creatives. Reference

412 when adding an attendee to recurring google calendar event via API with if-match

for non recurring events the "if-match" will return a 412 if the etag specified is not the latest. However what I found is that for recurring events it seemingly aways returns a 412 (with the latest etag) when trying to add an attendee. Any ideas?
When you are encountering this error 412, the suggested action would be to re-fetch the entity and re-apply the changes. Get Specific Versions of Resources documentation will have an in depth discussion about suggested action. For an overview:
Every resource has a version field that changes every time the
resource changes — the etag field. Etags are a standard part of HTTP
and are supported in the calendar API for two cases:
on resource modifications to ensure that there has been no other write to this resource in the meantime (conditional modification)
on resource retrieval to only retrieve resource data if the resource has changed (conditional retrieval)

Smartsheet Callback

I have integrated Smartsheet api in PHP, i am able to create the webhook and enable it. When a change is made in the sheet it hits the callback url. I am not receiving any data related to the change. I have logged the data as $_POST which is empty.
function smartWebhook_post(){
log_message('error','SS data: '.print_r($_POST,true), '', 'smartsf');
$this->response(array('HTTP status'=>200));
}
According to the documentation HTTP status 200 has to be sent back.
Every webhook callback will have a JSON body. So I'd look more closely at how you are handing the POST payload.
Note that the very first callback will be a verification request as per http://smartsheet-platform.github.io/api-docs/?javascript#webhook-verification

Coinbase HTTP Request for Ether Spot Price

I can currently issue the following request: https://api.coinbase.com/v2/prices/spot?currency=USD and receive a json response with the current (spot) price of BitCoin (BTC).
What I want is to retrieve that information for Ether (ETH). I note that the HTTP request that I am using does not specify BTC, it just defaults to that.
I have reviewed the Coinbase API without success in locating an answer.
I was just wondering if anyone is aware of an HTTP request to obtain that data, or if this request is not currently supported via HTTP.
tia
The Coinbase API docs, https://developers.coinbase.com/api/v2#get-spot-price shows the following URI structure for getting the spot price for Bitcoin (BTC) or Ethereum (ETH), which is different from what you have posted.
https://api.coinbase.com/v2/prices/:currency_pair/spot
The part of the url indicated as :currency_pair is a string containing
the symbol for the coin, a hyphen and then 'USD', such as BTC-USD or ETH-USD.
I am able to get BTC and ETH spot prices from the api with the following:
https://api.coinbase.com/v2/prices/BTC-USD/spot
https://api.coinbase.com/v2/prices/ETH-USD/spot

Here Maps Transit API: Isochrone Search: 403 Error

I am having trouble retrieving isochrones for public transport using the HERE Maps API.
Specifically, we are using the public transport API with isochrone search feature as described here:
https://developer.here.com/rest-apis/documentation/transit/topics/resource-isochrone-search.html
When we make a request, and use the key allocated to us, we get a 403 permissions error.
If we use the API Explorer/Playground (https://developer.here.com/api-explorer/rest/public_transit/isochrone-search) with the default/demo keys (already in place), then we get a 200 OK response. If we insert our own keys, the request appears to time out/not provide a response.
Any ideas on what we may be doing wrong?
Edit: Using a HERE Maps trial (90 day) account to test functionality.
For using Public Transport API, you need some special agreement with data supplier even for evaluation. Use the Contact us link to request additional permission.
https://developer.here.com/contact-us
https://developer.here.com/rest-apis/documentation/transit/topics/coverage-information.html

Resources