skip to Main Content

Azure – Create a MS Dev Box with API

I have currently problems with the token for the MS Dev Center service. I call the REST API PUT {endpoint}/projects/{projectName}/users/{userId}/devboxes/{devBoxName}?api-version=2023-04-01 with a Bearer token like described: AAD Token I have the right authority. I have the right scope "user_impersonation" I…

VIEW QUESTION

Php – Using EU VIES REST Service to check VAT Number

So i'm trying to check VAT Numbers using the REST Service the EU provides. Here is some documentation about it: https://ec.europa.eu/taxation_customs/vies/#/technical-information I'm using Postman for a check. Using this URL: https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-test-service The request body JSON example: { "countryCode": "DE", "vatNumber":…

VIEW QUESTION

Reactjs – React axios get parameter is undefined

I want to get some data from an api with a parameter current user's username. useEffect(()=>{ console.log(currentUser[0]?.id.toString()) if (currentUser) { console.log(currentUser[0]?.id.toString()) axios.get(`http://127.0.0.1:8000/get_chat2/?user1=${currentUser[0]?.id.toString()}&user2=`).then(res=>{ setUsers(res.data) console.log(res.data) }) },[currentUser]) When I print currentUser[0]?.id.toString() I get user's id but when I send the request…

VIEW QUESTION
Back To Top
Search