I have an app that searches for events on EventBrite using the API Method event_search.
Suddenly the search using dates has stopped working and all I get back from the API is 'Error thrown while processing query' - not very helpful.
If I use 'This Month' the query works. If I use 'Next Month' I get the error with the exact same query.
Similarly 'This Week' works and 'Next Week' fails.
This despite the fact that the API documentation shows that all of these date constructs are correct.
I verified that there were issues with the 'Next Week' and 'Next Month' named queries. But, I was not able to reproduce the error that you are describing when doing a date range based request.
I would recommend sending your complete request URL to Eventbrite's API support team.
Related
I am using the Twitter API's Search Tweets endpoint (https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets) to search for tweets on a particular topic. My application is written in Java and uses Twitter4j. I follow the guidelines (i.e. no more than 180 calls per minute and no more than 500 characters per query) however I do have a test case that has 50 word exclusions (so the total character count is 397). My test program also runs 100 such searches in rapid succession though, like I said, I observe the rate limits strictly.
The odd behavior I'm seeing is that the test runs fine and gets results initially, but after an arbitrary period of time, I start getting the following error:
Message: Missing or invalid url parameter. 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following).
message - Missing or invalid url parameter.
code - 195
The error message confuses me because I'm not trying to perform any of the update actions listed in the link provided. I'm just searching tweets. I'm also not sure what "missing or invalid url parameter" means. Is a query parameter missing from my request? The only required parameter is the query itself which I am definitely passing. The url is definitely correct unless Twitter4j is generating incorrect urls. So what does this message mean?
When I stop and restart the search (i.e. the max_id and since_id values get reset to -1, the searches start working again...for a while. As far as I know, nothing else about the search changes when it is restarted. Just those two ids.
I'm using Ruby on Rails and I'm implementing a library called stock_quote. Using its Github Documentation
I've been able to succesfully use the library, using different methods in RoR, like:
StockQuote::Stock.quote
StockQuote::Stock.stats
StockQuote::Stock.chart
But I'm having issues to fetch an specific date. For example, I can fetch the last six months in a daily basis, using:
#stock_chart = StockQuote::Stock.chart(params[:id], '6m')
But I need to fetch an specific date with this method. In the iextrading documentation, it says:
"Specific date : IEX-only data by minute for a specified date in the format YYYYMMDD if available. Currently supporting trailing 30 calendar days''
And the HTTP requested is:
/stock/aapl/chart/date/20180620
HTTP request highlighted - for specific date
I tried to execute this commend in Ruby On Rails, but I haven't been able to translate the HTTP request into a proper RoR format in order to succesfully fetch the trend data. In the stock_quote documentation there is not also any reference to this specific command.
I appreciate any help with this issue, I've tried around 20+ syntax ways but they didn't work.
According to https://dev.bitly.com/link_metrics.html#v3_link_clicks,
we can send multiple parameters like link, unit, etc.
Here i am using this gem https://github.com/philnash/bitly
i am actually looking for Clicks by Day,
i tried
Bitly.client.clicks("bitly_short_url").clicks_by_day, works fine
but i need to change Time Zone value
i tried this
Bitly.client.info({"link" =>"bitly_short_url", "timezone" => -6}).clicks_by_day
and i am getting error.
Is there any other way to get result for different timezone?
Please help
Try this,
Bitly.client.clicks({"link" =>"bitly_short_url", "timezone" => -6}).clicks_by_day
info API doesn't take link or timezone as parameters. But, clicks API takes that. You are passing parameters of clicks API to info API. That is the reason you are getting errors.
I am using the CalendarView API of Microsoft Graph. Based on the offical documentation: https://graph.microsoft.io/en-us/docs/api-reference/beta/api/user_list_calendarview
I did this:
GET https://graph.microsoft.com/beta/me/calendarview?startDateTime=2016-9-07&endDateTime=2016-10-02
However I don't see any recurring events. I can see other events happens before and after the recurring ones.
More information after the initial posting:
The problem occurs if the date range goes over the week border. For example, I have an recurring event on 2016-09-08, If I set the start date to 2016-09-07 and end date to 2016-09-10, it would work, but if I set the end date to 2016-09-11, the events won't show up.
#Michael Mainer helped to identify the root cause:
The calendar API has a default page size of 10. One should follow the "#odata.nextLink" property to obtain all results. The paged results is not sorted by start date unless "OrderBy" is specifically added.
As Miaosen Wang mention the default page size is 10.
As a workaround you can increase the page size adding the parameters "orderby" and "top" to you query.
params:
$orderby=start/dateTime DESC
$top=100
e.g.
GET https://graph.microsoft.com/beta/me/calendarview?startDateTime=2016-9-07&endDateTime=2016-10-02&%24$orderby=start/dateTime%20DESC"&%24top=100
I'm using the Google Analytics Google Spreadsheets plugin.
I'd like to segment data to only include visitors who have an event action of "get started" against them.
Here is what I tried when I try to run the report Google Sheets says the syntax is invalid:
segment=users::condition::ga:eventAction=#started
Then tried:
segment=users::condition::ga:eventAction==get started
Then tried:
segment=users::condition::ga:eventAction=="get started"
How do I tell the Google-Analytics API to return only users who have triggered the event action "get started"?
I'm not sure if I'm close or not. I suspect it might have something to do with the space between "get" and "started". But if that was the case maybe the attempt using =# would have worked?
I believe your first example will work once you remove the "segment=" part of the string.