I have a web app written in PHP that uses Mailchimp API v3. It was working ok until two days ago. I can't figure out what is going on. When I try to create new interest, I get 500 error, so in my response I don't get interest ID which I use later on. However, the interest gets created, which is weird.
I use the correct ENDPOINT. It's the same one shown in the API Playground. Even when I try to do this in the PLAYGROUND, I get the same error, but the interest (group) gets created.
Endopoint:
"http://".$dc.".api.mailchimp.com/3.0/lists/".$list_id."/interest-categories/".$subgroup_id."/interests"
Related
I'm getting the reach metrics via api call
{page-id}/fields=insights.metric(post_impressions){values}
But didn't find any way to get reach metric of facebook posts using webhook.
Do we get reach metrics using below endpoint
$facebook_page_id.'/subscribed_apps?subscribed_fields=feed
I'm following enter link description here
But didn't find any way to get reach metric of facebook posts using webhook.
There isn’t any.
The data you can get from this endpoint, is not data that would require any reaction “in real time” to begin with, so it would make rather little sense to integrate this into web hooks in the first place.
And these insight metrics get updated once a day only anyway, AFAIK.
Just make the API request, when you need the insights data.
I am using instaFlights Search API of Sabre. I am unable to get response for any of the IATA 3-letter codes other then "JFK" and "LAX". Whenever I pass any other IATA code in the request like "DXB", i recieve an error.
please note that I am working on test environment and testing the api on the link given below.
link of API test page
The error that i receive every time i request with any other IATA Code.
Are you in CERT or PROD?
If you are still in CERT, only a subset of available flight schedules/fares will be found and returned. Do you have access to PROD? If you're working in PROD and not getting any results then I would think something else is malformed in your request.
InstaFlight is limited to specific POS (Point of Sale) and the available city pairs are tied to the POS being used.
I recommed you to contact the API Support team for further details.
I'm trying to integrate a web app in PHP to integrate Xero. My objective is to submit a leave form to Xero from the application.
I'm using https://github.com/XeroAPI/XeroOAuth-PHP and did manage to get the employee lists. But the example request shows I need to pass the LeaveTypeID along with the EmployeeID. Where can I get the LeaveTypeIDs ie. What is the Leave type ID for Annual Leave or Sick leave. Here is the Sample xml Request I found in the example in http://developer.xero.com/documentation/payroll-api/leaveapplications/
<LeaveApplications>
<LeaveApplication>
<EmployeeID>5abad362-28aa-4c2c-a9cb-0899f7262d62</EmployeeID>
<LeaveTypeID>dc182d9a-a270-4f4e-acd7-af702d5a4382</LeaveTypeID>
<Title>My Test Leave</Title>
<StartDate>2013-04-11</StartDate>
<EndDate>2013-04-11</EndDate>
</LeaveApplication>
</LeaveApplications>
I searched the Internet, Xero documentation and the community portal but nothing is there> Any help is much appreciated.
Updates:
#ronanq - I've Tried that, using the following code to get the LeaveTypes from the Demo account
$response = $XeroOAuth->request('GET', $XeroOAuth->url('PayItems', 'payroll'));
pr($response); exit;
getting the following response:
code => 401
response => You do not have permission to access this resource.
The other end points are working fine.
Solution:
Thanks to #ronanq. the "payroll.payitems" needed to be added as a scope on Authorization. That will give access to get the LeaveTypes from xero
You can retrieve leave types and their associated LeaveTypeIDs from the PayItems endpoint.
I was trying to add some google calendars by PHP script, and update those calendars' ACL to make it available to our whole domain users.
Everything went well except I received this error after creating bunch of calendars:
Zend_Gdata_App_HttpException: Expected response code 200,
got 403 User has updated too many ACLs today. Please try again tomorrow. in
/Zend/Gdata/App.php on line 709
Do you guys know what exact number the limit is? That's very interesting. I tried to look at here and didn't get the answer.
https://developers.google.com/google-apps/calendar-resource/limits
The Google Console that shows you your live quota usage lives on code.google.com: https://code.google.com/apis/console
I'm attempting to use the QuickBooks API to sync up my company's product list with the workbook's item list. I have gotten through the OAuth system to be able to make read/write requests to the API, but always get an error while attempting to update an object.
The reference that I have been using is here, and within the same documentation is a reference to retrieving an object that I have been able to use just fine. This is the XML that I'm sending. I have been tweaking the XML for a few hours now to no avail.
The error message that I get is "QB item name already exists ERI=420962215". That ERI is my realm ID. It seems like QuickBooks thinks I am trying to add a new item, when I'm trying to modify an existing one. If I omit the name field or leave it null, it gives me an error as well.
The item that I am attempting to modify was created in QuickBooks, then synced through QuickBook's Sync Manager. I then authenticated my app to that workbook and have been able to read data easily. I only have an issue when I attempt to write. I have yet to try creating or deleting an object since I've been stalling out on updating.
I am trying to just set up a simple form on my company's site that will hit the API and update data when saving, but I can't find a way around this error.
Any help would be greatly appreciated. I began to have trouble on Friday and feel like I'm just spinning in circles now. I found a QuickBooks / PHP library and tried looking through it to see if I could find useful information, but it was a bit too large for me to locate what I was looking for, since I think the error is just some incorrect XML.
I have followed all the directions within the update reference and just can't make progress. I've double and triple checked that my authentication works, that the URL is correct, that I'm sending POST and not GET and that my XML matches the XML shown in that example.
UPDATE 2012-03-15
It seems the problem is that the API is not able to update an item that was created through QuickBooks. Ever item has an id and an idDomain, which indicates if it was made through the API (NG) or Quickbooks (QB). An example id/idDomain would be 1/QB or 2556587/NG.
Whenever I was doing this, I was able to perfectly update an item that was made through the API, but not one made through Quickbooks. After looking into the Supported Object Reference, I noticed that item assembly update/create is listed as beta.
It seems that what I wrote in the update is correct. I am not able to update items that were made in quickbooks through the API. I can read items made in quickbooks, I can create items and I can edit items made through the API, but editing an item made in quickbooks through the API returns this error.
A few things:
What URL are you POSTing to?
Can you show the full HTTP response you're getting? IDS has a bad
habit of returning error messages/codes that are sometimes ambiguous
if you don't look at the full XML response.
Some of these fields are not updateable: QtyOnPurchaseOrder,
QtyOnSalesOrder
You do know you can only use IDS/Sync Manager for applications you're
going to resell to other companies, right? i.e. you can't use it for
internal/one-off apps.
You're going to get much better support if you post these questions
to Intuit's developer forums: https://idnforums.intuit.com/
You may consider migrating to QBO V3 it is way better and easy to work with.
there is a very good api made to for this purpose. which you can get here.
https://github.com/consolibyte/quickbooks-php (Made By : Keith Palmer)
i am using this and am very satisfied with it.