Questions tagged [api]

96395 questions
2

votes
1

answer
11

Views

Json key is missing the refresh token field in google photos api

I am creating a app using google photos api in php. Here is my code function connectWithGooglePhotos() { $clientSecretJson = json_decode( file_get_contents('credentials.json'), true )['web']; $clientId = $clientSecretJson['client_id']; $clientSecret = $clientSecretJson['client_secret']; $tokenUri =...
Robin Singh
2

votes
1

answer
55

Views

Service fabric hosted Asp.net WebApi Container application : 403 - Forbidden : Access is denied. on local cluster

I'm trying to do a lift and shift of a Asp.net MVC application . I've containarized my Asp.Net WebApi application and deployed it AzureContainerRegistry and i'm referencing the container in a service fabric application. My ServiceManifest looks like this bookingacr.azurecr.io/bookingapi And the App...
Arshad Badar Khan
0

votes
1

answer
11

Views

IIS Rewrite based on query string value

I am new to IIS Rewrite, Need someone to assist me, I am in a scenario to redirect to another domain based on querystring value. Ex: Request: http://localhost:50743/api/Values?stdId=1000&stdName='Test' http://localhost:50752/api/Values?stdId=1001&stdName='Test1' http://localhost:50753/api/Values?std...
Vicky S
0

votes
0

answer
3

Views

Specification group by clause, column must appear in the clause

I'm trying to sort Services by Jobs which are in a ManyToMany relationship. public Page getServicesList(ServiceListRequest request, Pageable pageable, String sort) { Specification spec = (root, cq, cb) -> { if(!Long.class.isAssignableFrom(cq.getResultType())) { if(sort.contains('jobs')) { Join jobs...
Heiko Piirme
2

votes
0

answer
11

Views

Amazon MWS API to update inventory

Please do help me out for updating Amazon inventory through API. My case is, If I update inventory through feeds, it is taking little long, 10 min, 15 min some time it is taking more then hour also. Problem is if I update inventory now, it will take 10 min, In that 10 min any order got placed then t...
Sharad
0

votes
1

answer
19

Views

How to handle fetch errors?

I know there is a lot of questions about fetch erros, but it seems that no one is of any help to me. Every site or documentation say that fetch doesn't throw on errors, but that doesn't seem to be correct. What happens is that 404 errors, for example, throws on console but then goes for the then ca...
Yerko Palma
1

votes
0

answer
130

Views

ASP.NET Web API and IdentityServer issue with CORS

I had an MVC controller which was doing logout and it was working fine. We decided to migrate from MVC to Web API and translated all the code. Now, on logout action I'm getting response error like CORS request made for path: path-to-my-identity-server/login from origin: localhost:port but rejecte...
anatol
-1

votes
0

answer
6

Views

java.lang.UnsatisfiedLinkError: No native resource found at /android-x86/libh3-java.so

i am trying to play around with Uber H3-java library, i have implemented the library in gradle file, and i started using the example code in their documentation but i facing a problem when i am trying to run the simulator, i will post some screenshots.
Maged
0

votes
0

answer
8

Views

How can I access the birthdate from HWI/OAuthBundle when connecting via google OAuth 2?

I have a PHP Symfony 4.2 application with HWI/OAuthBundle properly configured. I created an OAuth 2 key and secret. I configured it in the hwi_oauth section of the symfony files. I use it to login users via a custom UserProvider. In particular I'm concerned in overwriting the method public function...
Xavi Montero
1

votes
0

answer
598

Views

Lumen Custom Authentication with custom Fields and Store in Auth Guard

I am using lumen for API development. I have an issue in Lumen Custom Authentication. I want to login a user when his credentials and account_name matches with stored record. In the credentials filed there is not username and password type data. here my login method public function login(Request $r...
Usman Hafeez
1

votes
2

answer
96

Views

Getting likes data (id and name) from JSONArray - Facebook api

i'm trying to get id and name from likes data in the facebook graph api on android: { 'data': [ { 'id': '1433908706707486_917483885016640' }, { 'id': '1433908706707486_910831695681859' }, { 'id': '1433908706707486_906550586109970', 'likes': { 'data': [ { 'id': 'xxxx', 'name': 'xxx' } ], 'paging': {...
ahsen
1

votes
1

answer
226

Views

Get CALENDAR_ID to insert event in Google Calendar

I am trying to insert an event in my Google Calendar but it is not working so far. Is there a simple way to get the right CALENDAR_ID inside of my method? private void syncwithgooglecalendar2() { Account[] accounts = AccountManager.get(CalendarSyncActivity.this).getAccountsByType( 'com.google'); Str...
Timitrov
1

votes
0

answer
215

Views

How to implement custom listview adapter in tabbed activity?

I am trying to implement the custom list view in tabbed activity for youtube video playing app. I could not able to call custom listview adapter in fragment java class. I have tried to pass getActivity() to custom adapter but the app crashes. If any one know the solution please help me. The java cla...
Kishan K
1

votes
1

answer
41

Views

How to find posts of a facebook page within a certain period of time?

I want to import posts of a page between 07-12-2017 and 10-12-2017. I have converted the dates to unix timestamps. https://graph.facebook.com/v2.11/ekantipur?fields=posts.until(1512926148).limit(125)&access_token=MyAccessToken works and so does https://graph.facebook.com/v2.11/ekantipur?fields=post...
Ashutosh Chapagain
1

votes
0

answer
112

Views

YouTube Analytics API Report.Query by Day with Timezone

I know, there is another Topic here with a similar Question, but the main Question has not been answered yet (as far as I understand). Given, that the YouTube Analytics API is returning everything in 'Pacific time zone', and I query the Data for 'one Day' (via StartDate/EndDate) - the returned Data...
Christoph Brosdau
1

votes
0

answer
57

Views

How to retrieve user shares

We have a working app that we're hoping to extend to include querying of personal shares via the linkedin rest api, using https://api.linkedin.com/v1/people/~/shares Our app has the following scopes provisioned in the developer console (and we're providing these in the auth request): ['r_basicprofil...
Greg
1

votes
1

answer
27

Views

pass parameters in api js

I need to pass login and email to const validateUser but i dont know how i can do it import { UserEntityModel } from './model'; const port: string = '3000'; const baseUrl: string = `http://localhost:${port}`; const usersUrl: string = `${baseUrl}/users`; Here i pass the login and email export const...
1

votes
1

answer
222

Views

getActiveCell() wont work for me on google scripts

I've been trying to do a quick code for someone that will change the background color of a cell in google sheets when they input a specific phrase. The code runs fine with no errors but it doesn't produce anything on the spread sheet. Any help would be amazing. This is the code i have: function Ch...
carlosaicrag
1

votes
0

answer
34

Views

Youtube API V3 404 Error On Onsen APP

I've used ready onsen UI youtube app from: https://github.com/frandiox/OnsenUI-YouTube on the local server, its working fine but I've created the build using Cordova than getting error of 404
sandip7400
1

votes
0

answer
186

Views

Access to posting company share denied in Linkedin API

One of our customers facing this issue while posting company update via our linkedin app. He has provided wshare permission. Also he has admin permission in company page and company share also enabled. Error message: {,'errorCode':0,'message':'Access to posting a company share denied.','status':403,...
Rajeswari Rajendran
1

votes
0

answer
88

Views

SignalR setup when separating out data access layer

Current setup has a single webapi with controllers, services, SignalR Hubs/server, data entity models and view models (say Project.Main). The thought is to create a separate project (Project.Data - webapi) for Data entity model, view models and services. Project.Main would reference Project.Data to...
Shyamal Parikh
1

votes
1

answer
763

Views

Laravel JWT Authentication without User Model

I'm trying to build a laravel application and API for mobile users in the same project. The main web is actually a backend of a website and require proper authentication that I have already implemented. And the api also need to authenticate but with different credentials (not user model from web). A...
AHSAN
1

votes
1

answer
259

Views

What's the best way to implement roles in a multi-tenant .net project?

My application is .NET 4.7 Web Api with Entity Framework 6. This is for a software as a service tool I am building. In my application there is a many to many relationship between AspNetUser and Company. A user can have many companies, and a company can have many users. A user needs to have a diffe...
Suren
1

votes
1

answer
231

Views

why having youtubePlayer in recyclerView it stops playing after a millisecond

I have recyclerView with different type of items, and one of the item include youtube video ,I'm using YoutubePlayer .When I'm clicking on the video it starts playing but after a millisecond it stops.If I change to full screen mode it plays as expected. I receive this log YouTube video playback stop...
I.S
1

votes
0

answer
383

Views

Add API present on a local docker container to Kong

I'm developing a little project with microservices, I want to configure Kong as the API-Gateway for my structure but I'm not able to forward incoming requests from Kong to my services. For example, I have a docker container running locally on address 172.18.0.15 and port 8006. I can access the api j...
EsotericVoid
1

votes
0

answer
62

Views

How to fetch code additions and deletions from Bitbucket API 2

In the GitHub API we have the possibility to get stats from a specific commit. E.g.: 'stats': { 'additions': 104, 'deletions': 4, 'total': 108 } I would like to know if for Bitbucket API V2 we have the same feature, I'm currently using: curl -X GET -H 'Authorization: Bearer ZZZ' -H 'Content-Type: ap...
g__n
1

votes
0

answer
178

Views

multipart/mixed: with axios and reactjs for several json requests

I am trying to request multiple JSON requests for youtube api v3: The aim is to get the latest 25 videos uploaded from 5 different channels. https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={CHANL000}&channelType=any&maxResults=25&order=date&key={XXXXX} https://www.googleapis.com/...
Santhosh Yedidi
1

votes
0

answer
55

Views

Finding device uniqueness using Canvas Fingerprinting

Currently I am using Canvas Fingerprinting and other device parameters to find the unique device. But in recent post i came to hear that Canvas Fingerprinting is going to be blocked by Firefox browser. So i need alternate solution for identifying devices effectively. Can anyone suggest me a effectiv...
Pravin Pravin
1

votes
0

answer
93

Views

How to use Google login API in java desktop application

how to login with Google API in java desktop application.I have generated API code and secrete key but i don't have any idea how to use it in java desktop application?
ritu
1

votes
1

answer
335

Views

BrokenPipeError when using Gmail API

I'm using Gmail API to send an email with attachments in Python 3. I'm trying the same code as google developers as shown below: https://developers.google.com/gmail/api/guides/sending The problem is that when attachments are 4.2KB or 2.6MB, the code works Well; but when attachments are 3.0MB or 9.6M...
yizhu
1

votes
1

answer
123

Views

Problems sign up to facebook with ruby on rails

when I sign up using facebook my url is http://localhost:3000/registration then it will change to http://localhost:3000/registration#= but it wont let me login that the only thing it changes on that page just the url. Contoller class OmniauthCallbacksController < Devise::OmniauthCallbacksController...
AB74574
1

votes
0

answer
787

Views

How to use dependency injection in ActionFilter Web API?

I am trying to get work with dependency injection into the action filter, but it seems not working I've registered the type in UnityConfig public static void RegisterComponents(IUnityContainer container) { GlobalConfiguration.Configuration.DependencyResolver = new UnityDependencyResolver(container)...
M005
1

votes
0

answer
399

Views

Test Actions on Google app on Raspberry Pi running Google Assistant SDK

I created an Actions on Google app which I am currently testing. I was able to test it on my Pixel, but when I tried to launch the app on my Raspberry Pi running the Google Assistant SDK it responded by saying '(name of app) isn't supported on this device'. Is there any way I can run the app on my P...
Shawn Patel
1

votes
1

answer
159

Views

500 error when making API token request to cherwell

I'm getting a 500 internal server error when trying to access cherwell REST api via Code trying to return a token to make other calls. I've verified that all the information (username, password, ClientID, and client secret) are all correct. I've also verified the server is up and accepting requests....
funktail1989
1

votes
1

answer
72

Views

position marker keeps going on false route before rerouting HERE maps premium sdk

is it possible on here android sdk to force positioning marker to stop before calculating new route? we tested this case which other navigations their marker stops then continue on new route but here positioning marker indepentently moving along a wrong path even the car turned to another street.
Fuad All
1

votes
1

answer
124

Views

Google apps scripts set cell formulas needing row number for a row added via appendrow

I have a google sheet that is populated with activities via a google form. One of the fields is an activity date field. Once done, the activity is moved to another sheet for reporting purposes via appendrow. var cells = [activityDate, title, completionDate, ...]; destsheet.appendRow (cells); To ai...
BrianScheffer
1

votes
1

answer
47

Views

using twilio account how to create a dynamic conference call for voiceurl in php

I am trying to upload using client on twilio and trying buy a twilio number. Also, I need to get a dynamic voice URL in order to record a conference call dynamically.
Lakshmi Dakshina
1

votes
1

answer
507

Views

Combine ASP.NET MVC and Web API projects using identity

I am new to ASP.NET and I have to create an ASP.NET MVC project using the identity framework for authentication and authorization, but the access to the database (SQL Server) must be done in an independent web service project so I created a Web API project with also identity containing all services...
sam
1

votes
1

answer
374

Views

Amazon Cart API - CartCreate Response

I am using the Amazon Product Advertising API. I am using the CartCreate operation to create a remote shopping cart and add two items into it. Here is my CartCreate operation: http://webservices.amazon.com/onca/xml? AWSAccessKeyId=12AWSAccessKey12 AssociateTag=myweb-no Item.1.ASIN=erq1 Item.1.Quanti...
Really Best
1

votes
1

answer
178

Views

Get-AzureRmConsumptionUsageDetail not returning data this week

We burn through about $2,500 / month in Azure services, meaning we have plenty of services that we are getting billed for each day. I use the Azure Powershell command Get-AzureRmConsumptionUsageDetail to get my billing data each day. For billing dates after 12/21/2017 the powershell command does not...
Terrence

View additional questions