w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » API » Page 1
Google+ Api Latest Activities - returns result unordered?
It's a known issue, and yes it used to work correctly. Google is currently looking into it, so hopefully there's a fix soon. For now you would have to order the result set yourself. https://code.google.com/p/google-plus-platform/issues/detail?id=1015

Categories : Api

is there any gitlab API to rename a group
As you've said, it's not documented at: https://github.com/gitlabhq/gitlabhq/blob/4a5044e30269f8b3c6c075093cd4646a478231c7/doc/api/groups.md Also, it's not implemented at: https://github.com/gitlabhq/gitlabhq/blob/4a5044e30269f8b3c6c075093cd4646a478231c7/lib/api/groups.rb which would be the obvious place. And I could not find any feature request at http://feedback.gitlab.com So I think it is sa

Categories : Api

Google Calendar API v3 Access Not Configured
When you tested the call in the API Explorer, you also had to activate the option "Authorize requests using OAuth 2.0" and then authorized the permission that are being requested. In this case the user (even if it's yourself) needs to authorize the access to the information. In order for an application to access the user's information, it is necessary to go through the authentication process usin

Categories : Api

Google Calendar Bug (/basic works but /full doesn't) since this morning
Google Calendar API v2 has been deprecated and was shut down this morning: https://developers.google.com/google-apps/calendar/v2/reference

Categories : Api

Get all media instagram. More than 33 picture
Pass your desired count of images to the recent media endpoint: https://api.instagram.com/v1/users/%USER%/media/recent/?count=%MAX_COUNT%&AccessTokenOrClientID In the response you will get a pagination containing a next_url value which you can use to fetch the next part until you receive no more next_urls in the response.

Categories : Api

Jmeter View Results Tree doesn't return anything in Response Data
Don't use JMeter GUI to run performance tests. Run test in command-line non-GUI mode instead. Don't use View Results Tree listener for anything but tests development or single-threaded debugging, it's too memory intensive and basically stores all requests/responses details in the memory. It might be the cause of errors you're getting. As per documentation View Results Tree MUST NOT BE USED

Categories : Api

Retrieve values from multiple itemids in zabbix api 2.0
That's the question for your PHP Zabbix API library - is it able to translate PHP array ($itemids) to JSON array automatically or not? It has problem apparently, so try to do it manually: $itemids = array("36361","36362","36363","36364","36365"); // "convert" PHP array to JSON array string $itemids = "[".implode($itemids, ",")."]"; // or use JSON array string directly: $itemids = "[36361,36362,36

Categories : Api

Two Xbee in API mode - Python
To communicate in API mode, you must send frame. A frame is compose by a header and a footer. There is some library to help you communicate in API http://ftp1.digi.com/support/utilities/digi_apiframes2.htm this web site show you how to communicate in API

Categories : Api

How to get the spotify id of a specific song with echonest api
Looking at the response you've got from The Echo Nest's API, the track URI is located in response.songs[0].tracks[0].foreign_id. So the documentation is correct, it's just that it didn't cover the response object that the songs array lives inside. Hope this helps!

Categories : Api

Pass filer search for restful api
To my mind, the best practice here is to use the QueryString to pass your filters. In this case, you don't need this "filter[key]" stuff. You have to pass only the fields you want to use as filters, like color=red&size=large&brand=brand1,brand2. Regarding filters using operators... you can pass one more field called "query" or just "q" and pass your "search query" inside it. Lots of APIs

Categories : Api

Add user to Yammer group, using API
Looks like there is an authenticity_token param missing in your URL. You must supply that parameter. This URL works, but note that it is not documented / supported, and could potentially change at any time: https://www.yammer.com/insert_yammer_network_name/group_settings/process_additions/isert_groupID.json?id=isert_groupID&invites[ids][]=&invites[emails][addresses]=insert_email@doma

Categories : Api

How to retrieve tasks by section using asana api
There is a not-yet-fully-supported way to get the sections of a task - if you use ?opt_fields=projects.section.name for instance, the response will contain the section task. There is currently not a way to query for the tasks in a section.

Categories : Api

Meteor and Twitter REST API 1.1
It's very straightforward to use the NPM package twit along with Arunoda's NPM for Meteor package which provides access to this from Meteor. meteor add meteorhacks:npm Then in the packages.js which will be generated in your root dir the next time you run meteor, add the entry: "twit": "1.1.20" You can now add the following to any server-side file: var Twit = Meteor.npmRequire('twit'); and y

Categories : Api

How can I retrieve a Gitlab Project tag list through the API?
Not possible: ACCEPTING MERGE REQUEST at: http://feedback.gitlab.com/forums/176466-general/suggestions/6325819-project-labels-via-api , so feel free to implement it if you need it. Should be simple: just return the project.tag_list (see: https://github.com/mbleigh/acts-as-taggable-on) as a JSON list from https://github.com/gitlabhq/gitlabhq/blob/41518a467dcef61deca24ad2f6205c6fd5706e1b/lib/api/p

Categories : Api

Office 365 API ErrorAccessDenied (Access is denied. Check credentials and try again.)
Thanks for your question and sorry to hear about the trouble you are having with your first app. Can you please check the permissions for Office 365 Exchange Online and make sure the permission "Have full access to a user's mailbox" is NOT selected? See attached image for more details. This is meant for access to a user's mailbox using an older API called Exchange Web Services, and not intend

Categories : Api

Flickr api_sig (api signature)
You should remove the whitespaces from the string i.e. you should just generate a md5-string from this: "api_key071da8bd47cc06715f12e139auth_token7215764931-65136290ea10d4b6formatrestmethodflickr.photosets.getPhotosphotoset_id7215924989144". And then use that as the api_sig parameter. Here are the steps: https://www.flickr.com/services/api/auth.spec.html#signing

Categories : Api

how to know the details of app when a new app is created in podio?
The documentation is at: https://developers.podio.com/doc/hooks When the webhook is invoked you receive the parameter app_id in the POST request. That holds the app_id of the app that was created. USe that to get the full app using: https://developers.podio.com/doc/applications/get-app-22349

Categories : Api

An API for getting the genres associated with a list of artists
Genre tends to be indirectly (via the tracks and releases an artist has producted) related to artists. Normally, APIs provide fairly brief results when you perform a batch query, listing names etc with a URL for more information. Because the genre is of less primary concern it's less likely to be in the initial list. If it's the performance of the batch query that is paramount you might have to l

Categories : Api

How to improve my REST API?
You can include author information for every post in a call to /posts/ and it's still RESTful. The issue then becomes how to include this information. Please have a look at JSON HAL and read about embedded resources.

Categories : Api

Google QPX Express API with Python
You're almost there! Just a few minor errors: The date needs to be quoted False is written in lowercase in json: false, so you'll need to quote it in Python No commas before close-bracket (OK in Python, but better to follow json conventions) print(response), not print(flight) also, it's generally a bad idea to publish your API key in a forum! This gives: import urllib2 import json url = "htt

Categories : Api

How can I get Segment API ID in Campaign Monitor?
This script solved my problem. //List all Segment with its Segment IDs /* $apikey = 'YOUR API KEY'; $listid = 'YOUR LIST ID'; $segments_wrap = new CS_REST_Lists($listid, $apikey); $segments_result = $segments_wrap->get_segments(); if($segments_result->was_successful()) { echo "<ul> "; foreach ($segments_result->response as $segment) { $segment_details_wrap = new

Categories : Api

querying categorymembers with wikimedia and the the size
You can use a category query as a generator, using generator=categorymember and gcmtitle=Category:Physics. This will execute the query action for each and every page in that category: api.php?action=query &generator=categorymembers &gcmtitle=Category:Lakes &prop=info In the docs you can see what properties can be used as generators: categories, links and temp

Categories : Api

Design pattern to work with API service
I used MVC pattern and it really create solution. Thanks this posts: How should a model be structured in MVC? Understanding MVC Views in PHP

Categories : Api

How to show a contact in the browser after getting the ID using the Office 365 REST API
I wrote a simple sample application (in Angular, but it's just using REST so you should be able to use it) that uses the Outlook Contacts REST API to get a user's contacts and display them to the user. In short, you should be able to get the information you want by making a GET request to "https: //outlook.office365.com/api/v1.0/me/contacts" to get all the contacts of the signed in user, or a GET

Categories : Api

Open Contrail API, post request on project resource
I wrote a documentation about Contrail api, For each resource I mention the allowed methods and which parameters to integrate on the request body and I test it until I get it to work finally I put an example. I haven't finished the documentation, I stopped working on Open Contrail. The documentation is my personal try maybe it would be useful and maybe it contains some mistakes, Thus, I would like

Categories : Api

REST-ful API URI Modeling approach
I'd propose you use the same URL with a query parameter (rather than a header) to specify the relevant country, defaulting to USA when not specified. This fits in with the RESTful style of the URI representing a resource that is being queried, and you're querying it slightly differently.

Categories : Api

stackoverflow api - get number of answers and questions per user
There is an easier way to grab the number of questions or answers posted by a user. You can use the filter=total query parameter, as explained in the documentation The forms presented on the pages below do not indicate it but you can use the parameter with both questions and answers. See the links for examples of querying for the number of answers and questions for my account on stackoverflow:

Categories : Api

How to implement OAuth for a "personal feed dashboard" application?
Most cloud services support OAuth. You need to register your application with the cloud service, like YouTube, and let your users allow access to your application at YouTube. You can check out http://yoke.io, a personal dashboard app we are working on, to see how this works. There are more popular cloud "aggregators" like HootSuite and Slack.

Categories : Api

Google Analytics: Difference between Core Reporting API, Unsampled Report API and GA reporting API
You sounds like you should start with the latest Core Reporting API v3 You may need the Management API v3 for examining the accounts and meta data. The others you probably don't need: the Unsampled report API is for requests to a Google Analytics Premium account, the Provisioning API is if you need to create accounts and the RealTime and MultiChannel Funnel APIs are for those reports as found in

Categories : Api

Magento SOAP API: Error in retrieving catalogCategoryTree
Seems pretty straight forward, though the error thrown suggests a much bigger problem. First make sure that the variables are exactly as you specified in your Magento installation (pay attention to caps). Second you can't pass empty strings, instead try "Null". Good luck

Categories : Api

rest api count column data
Yes, you can send a query via the REST-API and pass in the parameter count=1 to only return the number of possible results instead of the actual objects. Here is an example I took from the documentation [1]: curl -X GET -H "X-Parse-Application-Id: YOUR_APP_ID" -H "X-Parse-REST-API-Key: YOUR_REST_API_KEY" -G --data-urlencode 'where={"column3":"type3"}' --data-urlencode 'count=1'

Categories : Api

get authuser from url coming in consent screen while accessing gmail api
Instead of providing the hard code url, I think you could give the url below for an access to multiple gmail address dynamically: https://accounts.google.com/ServiceLoginAuth?continue=http://mail.google.com/gmail&service=mail&Email=yourname@gmail.com

Categories : Api

extending a resource endpoint with extra data?
It depends on whether these extra values belong to the main resource or not. In your case, if they belong to the resource named "Post" then it's perfectly acceptable. In fact, you can use an approach named "Partial Responses", that was first used by Google. In this case, you have to add a special QueryString attribute named "fields" like the example below. GET /post/:id/?fields=metadata,field2,f

Categories : Api

RESTful web service: create new resource by combining other resources: provide IDs or URIs?
I think that clients should receive absolute URLs from the server and only use these without any kind of modification. Therefore, I would even go one step further beyond your last example: { "title" : "A Boring Book", "pages" : [ "http://.../pages/1", "http://.../pages/2" ] } Only the server should be responsible to extract Ids from URLs if necessary.

Categories : Api

ZF2 Child routes for restful API
You can try something like this: 'router' => array( 'routes' => array( 'api-rest' => array( 'type' => 'segment', 'options' => array( 'route' => '/api-rest/wall/:userid/posts[/:id]', 'constraints' => array( 'id' => '[0-9]+', 'userid' => '[0-9]+',

Categories : Api

How do I get customer group name using Bigcommerce API
I assume you are using the PHP Library found here: https://github.com/bigcommerce/bigcommerce-api-php Use this to print full information on all your customers: $customers = Bigcommerce::getCustomers(); foreach($customers as $customer) { print_r(Bigcommerce::getCustomer($customer->id)); } You will notice however, that within the list returned, it only gives a customer group ID. To get th

Categories : Api

Testing async POST requests that go into queue to be processed with JMeter
Thread Group 1 Beanshell Sampler - props.put("finish", "FALSE"); HTTP1 HTTP2 .... Loop and/or delay (GET on the event and see the status of the video which is "status" : "Encoding" or "status" : "Ready".") IF Controller - "${status}"=="Ready" Beanshell Sampler - props.put("finish", "TRUE"); While Controller - ${__BeanShell( props.get("finish") != null || props.get("finish")=="TRUE" )}

Categories : Api

What OAuth pattern/flow is this called?
There is no name for the pattern that you described. In OAuth 2.0 there are different flows for a user to grant a third-party access to their protected resources (called Grant Types), but what you described above does not have a name.

Categories : Api

Office 365 Rest api auth
Ok I finally managed to get a 200. My problem was the resource param when asking a token was set by defaut to 00000002-0000-0000-c000-000000000000 (I'm using Rails omniauth-azure-oauth2 gem). I changed it to https://outlook.office365.com and it works. Still, the api give me the right answers, but the call is ultra-slow (up to 30s !). Any clue on how to make it respond in a reasonable time ?

Categories : Api




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.