API request

It would be extremely useful set the framerate on a sequence of the clip/video/image.

var shotgunBin = $.pipelineTools.searchForProjectBinItemWithName ("Shotgun") [0]

var bin = shotgunBin.children

Shooting

for (var c = 0; c < bins.numItems; c ++) {}

Launch code

var cssBin = bins [c] .children [0]

for (var s = 0; s < cssBin.children.numItems; s + +) {}

var off = cssBin.children [s]

$.writeln (shot.name)

shot.changeMediaPath("sequence-sequence.00101.jpg")

shot.setFrameRate ('23.97') / / it would be great to have.

If you have a library of acceptable values as strings that can be passed to account for 29; 97 or 29.97 or 24.00

Of course have documented it somewhere would be nice too

}

}

It doesn't seem to be a single reliable method to set the framerate on a sequence of the clip/video/image via the API or metadata.

Thank you

You're right; There is no reliable way to arbitrarily change the pace of project items.

Tags: Premiere

Similar Questions

  • SaveConference TMS booking API request fails with concurrentModificationException

    Hello

    I can't request a saveConference using the TMS v15 and Cisco TMS 14.6 booking API

    1. I do a backup Conference request without a session client because there is nothing first. I get an error 'ClientSessionErrorMessage_SessionBlank' and a session id is provided as planned.

    Request:

    http://www.w3.org/2003/05/soap-envelope' xmlns:env ='http://www.w3.org/2003/05/soap-envelope">http://tandberg.net/2004/02/tms/external/booking/" >15http://tandberg.net/2004/02/tms/external/booking/ ">722 .TMS meeting 4212015-04-25 13:00:00Z 2015-04-25 13:15:00Z 7 Win-lrb4bsm6uhe\apiuser-Domain1 API user Org = Domain1 [email protected] / * / one button to push 8B / 512 Kbps continuous Presence If Possible No. AutomaticBestEffort fake 18666543210 * 57101613 16TMS6B / 384 Kbps8B / 512 KbpsUSNotSaved0

    Answer:

    "http://www.w3.org/2003/05/soap-envelope" xmlns:env ="http://www.w3.org/2003/05/soap-envelope" container ="http://www.w3.org/2001/XMLSchema" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >SOAP: SenderClientSessionErrorMessage_SessionBlankhttp://10.251.4.15/tms/external/booking/bookingservice.asmx <> xmlns = "http://tandberg.net/2004/02/tms/external/exception/" >-2147218247http://tandberg.net/2004/02/tms/external/exception/ "> falsehttp://tandberg.net/2004/02/tms/external/exception/" > 92e0bfd3-e2a8-4f66-bbbb-423d44adbdfb .

    2. I use this sessionid to make the same request to saveConference, but with this the client session id this time. I get an error "the booking changed before your update was introduced. Ensure that you have the latest version of the reservation and try again. "How to fix this?

    Request:

    http://www.w3.org/2003/05/soap-envelope' xmlns:env ='http://www.w3.org/2003/05/soap-envelope">http://tandberg.net/2004/02/tms/external/booking/" >1592e0bfd3-e2a8-4f66-bbbb-423d44adbdfbhttp://tandberg.net/2004/02/tms/external/booking/ ">722 .TMS meeting 4212015-04-25 13:00:00Z 2015-04-25 13:15:00Z 7 Win-lrb4bsm6uhe\apiuser-Domain1 API user Org = Domain1 [email protected] / * / one button to push 8B / 512 Kbps continuous Presence If Possible No. AutomaticBestEffort fake 18666543210 * 57101613 16TMS6B / 384 Kbps8B / 512 KbpsUSNotSaved0

    Answer:

    «http://www.w3.org/2003/05/soap-envelope"xmlns:env ="http://www.w3.org/2003/05/soap-envelope"container ="http://www.w3.org/2001/XMLSchema"xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance">SOAP: Senderthe amended booking before your update was presented.» Ensure that you have the latest version of the reservation and try again. http://10.251.4.15/TMS/external/booking/bookingservice.asmx " <> xmlns ="http://tandberg.net/2004/02/tms/external/exception/">-2147218248http://tandberg.net/2004/02/tms/external/exception/" > falsehttp://tandberg.net/2004/02/tms/external/exception/ "> 30fe0343-b04f-4a47-a94c-45d1a0d47c60 '.

    Try to use getConferenceById to retrieve the object of the Conference you want to change. I suspect that the revision id is set to 0 when you use getDefaultConference. See the description of the attribute 'version ':

    Revision number of conference together, incremented and returned by Cisco MSDS with each record. By default, 0 if not included by the client. If the client tries to update a version which is not the
    later in the database, Cisco TMS will throw an exception.

  • API requests a list of columns?

    I'm looking for documentation on how to apply for the available columns in the system.

    I would like to create a plug-in for gravity forms where the user might be a form of gravity fields Eloqua columns.

    Is it possible to request a JSON of column names array?

    Steve

    Hello Stephen,

    The post following (How to set up your import) includes an example of how retrieve fields of contact of the API. The API response is a JSON array. Please let me know if you need more information.

    Thank you

    Fred

  • Body section rest API request

    Hello

    I use this code to create a rest api to request my server rest api

    varPr = Host.createRequest("POST", "/track/all", null).execute();

    but I want to set some parameters of body to my application how can I do?

    The 3rd parameter of the createRequest() method is the body of the request (null in your example).

    Don't know which body your/track/all REST API, but here's a code example illustrating how to pass a string value when a workflow starts with a parameter of type string:

    var content = {
      "parameters": [
      {
        "type": "string",
        "scope": "local",
        "name": "param",
        "value": {
          "string": {
            "value": "some sample string value"
          }
        }
      }
      ]
    }
    
    var body = JSON.stringify(content);
    var request = host.createRequest("POST", "/workflows/76312d50-3dda-4f09-a6d7-322c652b10a4/executions", body);  // vCO REST API to start a workflow given its ID
    request.contentType = "application/json";
    var response = req.execute();
    
    System.log("response status -> " + response.statusCode);
    
  • Create a user: API request error

    Hello

    I would like to create a user via the REST API, but I don't understand why I get from VMWare REST API (vcloud) this result: Page NOT FOUND

    api1.PNG

    Equal content:

    api2.png

    Thank you in advance,

    "" Can you try to change the value of the 'xmlns' attribute in your XML query to: xmlns = "http://www.vmware.com/vcloud/v1"

    Looks like you are trying to use the API v1.0 in the URL, but you're passing v1.5 namespace.

  • Calling REST API security token error simple GET method

    Please help me get past this error. I have yet to get a successful REST API request of Eloqua. API is enabled for our sandbox that I managed by instantiating different SOAP request/response.

    This is my test RequestURI

    https://secure.Eloqua.com/API/rest/2.0/data/contact/3

    With the method 'GET' headers appropriate and what I have collected of their API guides, including the very useful

    Eloqua REST API - authentication

    Eloqua REST API - URL parameters

    Eloqua REST API - HTTP request headers

    RequestURI works when typed manually into a authenticated (connected to the Eloqua Sandbox session) tab of the FireFox browser.

    When I try the request in my tools (middleware Tibco integration, acting as a client HTTP request), I always get the answer:

    A security token that is associated with your session became invalid.

    I saw this topic, but this was not useful in my case.

    http://topliners.Eloqua.com/message/20371#20371

    The behavior in my case is pretty consistent, and seems not to care if I even spoil RequestURI making it invalid. The same error persists.

    Help, please! Thank you

    Heath

    A more complete answer follows:

    < RequestActivityOutput >

    < header > HTTP/1.1 200 OK

    Content-Type: text/html; charset = utf-8

    Content-Length: 2355

    Date: Friday, April 19, 2013 19:43:19 GMT

    cache-control: private

    connection: close

    P3P: CP = "IDC DSP COR DEVa TAIa OUR PHY ONL UNI COM NAV CNT STA BUS."

    < / header >

    < statusLine >

    < httpVersion > HTTP/1.1 < / httpVersion >

    < statusCode 200 > < / statusCode >

    < reasonPhrase > OK < / reasonPhrase >

    < / statusLine >

    ....

    A security token that is associated with your session became invalid.

    This can happen if you open multiple instances of Eloqua, in

    different browser Windows or tabs, then the diary of one of

    These instances.  Please either close this window or tab, or

    & lt; a href = "" / FormsLogin.aspx "target ="_top"> click here to connect to new & lt;" /a >. & lt; br >

    Heath,

    I'm not able to simply navigate to this URL in my browser either, even though I am connected to my sandbox (which has access to the API). I don't know how you manage to get there in Firefox.

    That being said, I can hit this page of the REST API very well when I base64 encode my credentials HTTP as described here:

    Eloqua REST API - authentication

    May be useful to take a look at the auth string you use when calling from rest.

    Jim

  • Using c# to access the REST API - 404 not found

    Hi all!

    Since there is currently no available c# example to access the REST API, I'm going at this from scratch using the Nuget - Microsoft.AspNet.WebApi.Client package.

    I was able to successfully implement a framework for code that is able to make a call to the base_uris method and successfully receive a response.

    I'm doing a transientDocuments call, but I still get a 404 not found error.  I'm hoping somewhere here may be able to enlighten.  I tried to use the current examples of Java to call REST API to get help on how to go about things.

    I create an instance of the AdobeDCREST class, and pass the BaseUrl (https://api.echosign.com/api/rest/v5/) and my key to integration.  When I make a call to the PostTransientDocuments method I pass into the path of the pdf file that I am trying to download.  PostTransientDocuments then deals with the creation of an object the HttpContent (StreamContent) of the file, and then adding the headers, ContentType and ContentDisposition.  The call to GetClient() will determine whether base_uris should be called still or not (I make the call to base_uris and storage of the api_access_point in a variable static for all other calls, as well as the java examples) and returns an object of the HttpClient with the access in the header already token.  The call to base_uris works and returns a https://api.na1.echosign.com/ api_access_point

    I then add/api/rest/v5 to the url access_point to call transientDocuments. Failure occurs during the call to PostAsync in transientDocuments with a 404 not found error.

    Here's the code I'm using to test things so far.  Any help would be greatly appreciated.  I've been spinning my wheels on that for too long already.

    using System;

    using System.Collections.Generic;

    using System.IO;

    using System.Linq;

    using System.Net.Http;

    using System.Net.Http.Headers;

    using System.Text;

    using System.Threading.Tasks;

    namespace Ivezt.Documents {}

    public class AdobeDCREST {}

    < Summary >

    A static variable that is defined by an initial call to GetBaseURIs() and used for all API calls later.

    < / Summary >

    Private Shared ReadOnly Property SERVICES_BASE_URL as string = string. Empty;

    < Summary >

    The end point of API to use.  This aspect will have to be changed if Adobe is moving to a new version of the API and we update this

    the code to use this new version.

    < / Summary >

    Private Shared ReadOnly Property API_URL as string = "api/rest/v5 /";

    < Summary >

    This BaseUrl is passed to the constructor and used to make a call to GetBaseURIs().

    < / Summary >

    private string m_strBaseUrl = string. Empty;

    < Summary >

    The IntegrationKey is passed to the constructor and must be added to the header of each API request.

    < / Summary >

    private string m_strIntegrationKey = string. Empty;

    public AdobeDCREST (string strBaseUrl, string strIntegrationKey) {}

    m_strBaseUrl = strBaseUrl;

    m_strIntegrationKey = strIntegrationKey;

    }

    private HttpClient GetDefaultClient() {}

    HttpClient client = new HttpClient();

    Add an Accept header for JSON format.

    customer. () DefaultRequestHeaders.Accept.Add

    (new MediaTypeWithQualityHeaderValue("application/json"));

    Add the access token

    customer. DefaultRequestHeaders.Add ("Access token", m_strIntegrationKey);

    customer feedback;

    }

    private HttpClient GetClient() {}

    If we have not yet the SERVICES_BASE_URL, then we must do a GetBaseURIs call

    If (SERVICES_BASE_URL. Length == 0) {}

    HttpClient baseClient = GetDefaultClient();

    Use the BaseUrl passed to the constructor

    baseClient.BaseAddress = new Uri (m_strBaseUrl);

    URI BaseURIs_Response = GetBaseURIs (baseClient);

    SERVICES_BASE_URL = string. Format ("{0} {1}", uris.api_access_point, API_URL);

    baseClient.Dispose ();

    }

    If (SERVICES_BASE_URL. Length == 0)

    throw new Exception ("failed to retrieve Adobe Document cloud Base URI");

    HttpClient client = GetDefaultClient();

    customer. BaseAddress = new Uri (SERVICES_BASE_URL).

    customer feedback;

    }

    public BaseURIs_Response GetBaseURIs(HttpClient client) {}

    Call base_uris

    HttpResponseMessage response = client. GetAsync ("base_uris"). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (BaseURIs_Response). Content.ReadAsAsync (typeof (BaseURIs_Response)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    public TransientDocument_Response PostTransientDocuments (string strFilePath) {}

    Call transientDocuments

    Content the HttpContent = new StreamContent (new FileStream (strFilePath, FileMode.Open, FileAccess.Read));

    content. Headers.ContentType = new MediaTypeHeaderValue("application/pdf");

    content. Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") {}

    Name = "file."

    FileName = 'Template.pdf.

    };

    HttpClient client = GetClient();

    HttpResponseMessage response = client. PostAsync ("transientDocuments", content). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (TransientDocument_Response). Content.ReadAsAsync (typeof (TransientDocument_Respons e)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    }

    public class BaseURIs_Response {}

    public string web_access_point {get; set ;}}

    public string api_access_point {get; set ;}}

    }

    public class TransientDocument_Response {}

    public string transientDocumentId {get; set ;}}

    }

    }

    I think I found my problem.  I was not a multi-part post form data.  Once I changed this, everything worked as expected.  Here is an updated version of the PostTransientDocuments() method that works:

    public TransientDocument_Response PostTransientDocuments (string strFilePath) {}

    Call transientDocuments

    using (var = {GetClient() customer)}

    using (var content = new MultipartFormDataContent()) {}

    var multiplesContent = new StreamContent (new FileStream (strFilePath, FileMode.Open, FileAccess.Read));

    fileContent.Headers.ContentType = new MediaTypeHeaderValue("application/pdf");

    fileContent.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") {}

    Name = "file."

    FileName = 'Template.pdf.

    };

    content. Add (FileContent);

    HttpResponseMessage response = client. PostAsync ("transientDocuments", content). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (TransientDocument_Response). Content.ReadAsAsync (typeof (TransientDocument_Respons e)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    }

    }

  • document temporary response API

    Hello

    Hope anyone can shed more light on this issue. When you use the API v4 transientDocument operation I got an answer 200 (OK) but a content of a weird response, instead of a JSON response, I got a text/html

    Any help would be most welcome, thank you very much

    URL

    https://API.NA1.echosign.com:443 / api/rest/v4/transientDocuments

    RESPONSE

    Metadata

    content-type: text/html

    status: 200

    x-request-id: 28c593a8-5999-4f08-99d0-e0bf10b4aac7

    Body

    eyJ0cmFuc2llbnREb2N1bWVudElkIjoiM0FBQUJMYmxxWmhESUluOGV6cHZtZ3NOWDh2TnRlM1JGdVdkNTUzQkhvYm xpTDBVNEFudmwyWjkxdmprcGNYeGVSRFdSMjFtSkluekNTa1poYzFKSjZpcUhGdVR1SndrbE4yYmhBQW9uc1hrMEVm ektrOGFBM01UeUJWOXV2cFZud3h1cS1NY0N6SldjVmk3dF9RbFlMQWFTWXVId005dUhpY3ZaWTcwWTM0aWwyZUg0N1 NzMVNjanAxY3RLelB6RjFhQnJoenA3MzJjY3dUMUxqZmFaS1p6MVQ1cW5uaHhPIn0 =

    REQUEST

    Metadata

    cache-control: non-cache

    content-type: multipart/form-data; Boundary = MultiPartFileBoundary150dde63685

    Connection: keep-alive

    Host: api.na1.echosign.com

    access token: 3AAABLxxxxxx

    original-path: / rest/v4/transientDocuments

    content-length: 2793

    accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q =. 2

    method: POST

    user-agent: Java/1.7.0_51

    requestUrl: rest/later / transientDocuments

    pragma: non-cache

    Body

    Boundary = MultiPartFileBoundary150dde63685

    Content-Disposition: form-data; name = "file name".

    MyFileName

    Boundary = MultiPartFileBoundary150dde63685

    Content-Disposition: form-data; name = 'Mime-Type '.

    application/pdf

    Boundary = MultiPartFileBoundary150dde63685

    Content-Disposition: form-data; name = "file"; File name = 'MyFileName '.

    Content-Type: application/pdf

    Content-Transfer-Encoding: binary

    JVBERi0xLjQKJeLjz9MKMyAwIG9iajw8L0JTPDwvVyAwL1MvUz4 + L0E8PC9VUkkoaHR0cDovL3d3dy5SZXppQm94Lm NvbSkvUy9VUkk + Pi9TdWJ0eXBlL0xpbmsvUmVjdFs4MC4yMSA1NzIuMSAxMzEuMTggNTgyLjgyXT4 + CmVuZG9iago0 IDAgb2JqPDwvQlM8PC9XIDAvUy9TPj4vQTw8L1VSSShodHRwOi8vdHdpdHRlci5jb20vUmV6aWJveCkvUy9VUkk + IP 9TdWJ0eXBlL0xpbmsvUmVjdFs5MC4zNCA1NjEuMzggMTMyLjc5IDU3Mi4xXT4 + CmVuZG9iago1IDAgb2JqPDwvQlss ssssssS9GaWx0ZXIvRmxhdGVEZWNvZGU + PnN0cmVhbQp4nI1VTU/cMBC9 + 1dMD6itBFM7sfNBLy0CpFaiFSgSh6oH7 66zCeRjyQZoWvW / d + wkm11EWZRD/NZv3jzPeLJ37CRhHCIpMIogWbCzhF2yO8aR + 6GCR + bBV9q / YYLDBfvxk8OC + QF EXFl + yZSK0YtGXIzYD5BLgkTdWm5YGbtmFeWIVRAFwFEFPIzozWMpPGiWTHoQcIl9Bt8q9rAYoRIRxh5hYm6vR1rGU rJtH1KjI344F0DSScqE + 1WQLwhjhUJAUrJ3OGuMvoU/sNJLc + TA0cykdWOOQRePult/hL/vkxtbn2flKHcYROg7tVO jGzi9 + HKQmEpX8w5b + 24xzZt1 + 02X5uBwnxY1RMZO7NpAph8MNGZu8gezgK6 + b8hnVxqS3KcjJAah0. nctnqe9fFvi wLSvNrV6jOs9moGUYjUNquZZLq6tSKgScxUN3XXS65b3YFud4qwauqVadoOZ/d5scirJVa2FG/2pfMletKluzJL3Sz WY/GITM/U4BiD7VgVgoqkvRo29qzUeXEMQ2ikkAu3LSVdMhEoih1gsYE + 3VCCI/kJHMj2qj1vYCIOHjJTFPWnK/M7P 6 l/4bwud4 / + jP + Qzj7cgtlknqNnt30MhTXvCxTRiItt7NmxmOhPoGO/YH8gjhas79krfQc + yv7aJY9525pmYz7m6Es ieBjHzryHYTziYhvbWk/sXeS4/7 c + gf/QSN9CdwYL/EjcuxqLvNa4ovXIh53puZnV9OzmPUQrH8ALn3Hft7XExYYGh UMcjLzWuv3S9p36ThNYp2k + N0AjV9GoQUZTuQbdGLioqwUNZ1vDeZPT6hBiXVqoVmNf7T/AJfsHsYhvPAplbmRzdHJ lYW0KZW5kb2JqCjEgMCBvYmo8PC9QYXJlbnQgNyAwIFIvQ29udGVudHMgNiAwIxxxxxxx8L1Byb2NTZXQgWy9QREYg L1RleHQgL0ltYWdlQiAvSW1hZ2VDIC9JbWFnZUldL0ZvbnQ8PC9GMSAyIDAgUj4 + Pj4vTWVkaWFCb3hbMCAwIDU5NS 4yOCA4NDEuODhdL0Fubm90c1szIDAgUiA0IDAgUiA1IDAgUl0 + PgplbmRvYmoKOCAwIG9iaiA8PC9MZW5ndGggMTcy L0ZpbHRlci9GbGF0ZURlY29kZT4 +. c3RyZWFtCnicdU89C8IwFNzfr7hRl5ikSZuugg6CQyHgIA5iP6TYpJWCf9 + FB3vLuvbvjbqC1JQ6jBDMGtqSNpYIG4ownmcaDJHbh35Lg2NPxxFFSksJwHfkdaZ0zaWZ8m3GSMq4CDNSv9cO60oFc sI1zb2KE1VZASNiaxHQVUBKZESzNYTtaXLwbKzfCO4y kWt + h6 / Rn5sKcmnbGPmvg1ZTr1 + Hl5Qx9lbHwgU9AWiFO3EKZW 5kc3RyZWFtCmVuZG9iago5IDAgb2JqPDwvUGFyZW50IDcgMCBSL0NvbnRlbnRzIDggMCBSL1R5cGUvUGFnZS9SZXNv dXJjZXM8PC9Qcm9jU2V0IFsvUERGIC9UZXh0IC9JbWFnZUIgL0ltYWdlQyAvSW1hZ2VJXS9Gb250PDwvRjEgMiAwIF I + Pj4 + L01lZGlhQm94WzAgMCA1OTUuMjggODQxLjg4XT4 + CmVuZG9iagoyIDAgb2JqPDwvQmFzZUZvbnQvVGltZXMt Um9tYW4vVHlwZS9Gb250L0VuY29kaW5nL1dpbkFuc2lFbmNvZGluZy9TdWJ0eXBlL1R5cGUxPj4KZW5kb2JqCjcgMC BvYmo8PC9UeXBlL1BhZ2VzL0NvdW50IDIvS2lkc1sxIDAgUiA5IDAgUl0 + PgplbmRvYmoKMTAgMCBvYmo8PC9UeXBl L0NhdGFsb2cvUGFnZXMgNyAwIFI + PgplbmRvYmoKMTEgMCBvYmo8PC9Qcm9kdWNlcihpVGV4dCAyLjAuOCBcKGJ5IG xvd2FnaWUuY29tXCkpL01vZERhdGUoRDoyMDE1MTEwNjE3MDIxNlopL0NyZWF0aW9uRGF0ZShEOjIwMTUxMTA2MTcw MjE2Wik + PgplbmRvYmoKeHJlZgoxxxxxxxxOCAwMDAwMCBuIAowMDAwMDAxODYzIDAwMDAwIG4gCnRyYWlsZXIKPDw vUm9vdCAxMCAwIFIvSUQgWzw3Zjk1ZTA4ZGJmMzllMjg3Yzk4NDAzMTE2NTk1M2M1ND48NmRjZmRlMjkxMGY4MTRlN DVlMGU3M2M2MTc3MjFlNmU + XS9JbmZvIDExIDAgUi9TaXplIDEyPj4Kc3RhcnR4cmVmCjE5ODMKJSVFT0YK

    Boundary = MultiPartFileBoundary150dde63685

    Concerning

    Javier

    Hi Javier,

    I think I was getting the same error. I contacted the support and that's what I was told:

    Our engineering team is of the opinion that they found the resolution, I received the information below:

    In our last version 8.0, we started to honor the 'text/html' in the HTTP Accept header. This was done to allow some new integrations that awaits a response from text/html. Finance Snap API requests are the following to the Accept header:

    accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q =. 2

    Thus, the service is honoring the priority of text/html and return in the proper format. Could you please try changing the value of the header in the integration:

    Accept: * / *.

    This will ensure that we can properly respond to your request of API as well as applications for other integrators.

    If you have any questions or concerns, please let us know.

    I modified my Java code to include the following text:

    headers.put (RestApiUtils.HttpHeaderField.Accept.ToString (), "* / *");

  • Interaction with OpsCode Chef HTTP vCenter Orchestrator v5.1 Update 1 REST API

    Interaction with OpsCode Chef HTTP vCenter Orchestrator v5.1 Update 1 REST API

    I need to be able to use the HTTP REST APIs to run commands on the server of leader during the commissioning and decommissioning of virtual machines.

    Chef Server API Documents

    This requires the ability to use the SHA1 algorithm and also the Base64 algorithm in vCenter Orchestrator v5.1 update 1 to create the header of hashes.

    Method: HTTP_METHOD

    Axes of path: HASHED_PATH

    X Ops-content-Hash: HASHED_BODY

    X Ops - Timestamp:TIME

    X Ops - UserId:USERID

    where:

    • HTTP_METHOD is the method used in the API request (GET, POST, and so on)
    • HASHED_PATH is the path of the query (/name_of_endpoint for the server open source) and/organizations/organization_name/name_of_endpoint took the head or private Chef. The HASHED_PATH must be hashed with SHA1 and encoded using Base64 and should not have repeated oblique (/) or end with a bar slash (unless the path is /).
    • The private key must be an RSA key in the SSL .pem file format. This signature is then divided into strings (of not more than 60 characters per line) and placed in the header.

    The server of crypts that header and ensures its content corresponds to the content of unencrypted headers contained in the request. The timestamp of the message is checked to ensure that the request has been received within a reasonable time. An approach to generate the signed headers is to use the authentication mixlib, which is a header based on a class signature of authentication object similar to one used by the Chief customer.

    Any help with this would be greatly appreciated.

    Perfect timing!  I was just finalized this week the docs and test of a package for the Chef Server API:

    CHIEF Server Workflows

    Let me know how it works for you!  Of more if there are other points of termination or I missed scenarios, they should be easy to add.

  • Make a JSON request refresh data every minute!

    Hello

    How to make an API request the update automatically on a page-a term? (every minute or so)

    Here essentially power SEND dynamic data via JSON to PhoneGap apps that I build of edge animate projects.

    Thus, for example, the JSON could contain information that generates a new symbol or starts a symbol playing, etc.. Or updated an animation with wind speed from a weather API.

    Thanks in advance! It would be so cool!

    If you put it in composition.ready, then it will repeat until you stop it. I won't say that you can not put it somewhere else because it depends on what you need, but it's easier to understand the scope of your duties, if they are attached to the scene, especially those you want to call on various elements within the composition.

    If you add it to an event click, do not forget to clearInterval() otherwise you will have multiple functions, tail, for example

    {sym.$('element').on ('click', Function ()}

    clearInterval (myInterval);

    setInterval myInterval =(function () {doSomething}; 60000);

    });


    Well put setInterval() on a timeline in a loop, you would get to be several events lining up, or you'll end up to the range of compensation (and cancel the event) before its arrival in fact. But, if you want to use a loop mount, you wouldn't need setInterval() and setTimeout() in any case, you could just raise the event every time that the timeline reached the trigger.

  • Details of the catalog using the request in OIM 11 g 2 id

    Friends,

    Can you please provide me with a code snippet to find details of catalog for a given using the api request identifier?

    Thank you

    Try these things:

    Get the key of feature using your ID to request (* getEntityKey() *)
    Get the Type of entity with ID (* getEntityType() *) of the application

    OIMType oimtype = null;
    If ('Role'.equalsIgnoreCase (* Entity Type *))
    oimtype = OIMType.Role;
    ElseIf ('Right'.equalsIgnoreCase (* Entity Type *))
    oimtype = OIMType.Entitlement;
    ElseIf (.equalsIgnoreCase "ApplicationInstance" (* Entity Type *)) {}
    oimtype = OIMType.ApplicationInstance;
    }

    Call: getCatalogItemDetails (entityKey, oimtype, null, null) / / CatalogService

    Let me know the results

    Published by: Rajiv Dewan

  • OIM 11 g - adjustment process form data through query API

    Hello

    I would define the shape of process via the API data request. I have a user configured in AD. Now I would like to define form data to process (title) through the API request. I have imported the necessary data and that it works through UI request. But when I try to do this through query API, the value is not updated in the form of process. Can anyone help with a code example to achieve this functionality? Thank you.

    You define the data of application correctly when creating on-demand via the API? There is also the correct attribute in all reference maps data? What about the attribute itself? It is in the form of parent or child?
    Looking at the title of the ad must be the parent form data, so use the following code as an example to update all data correctly:

    
               long resKey = 0L;
               String str = null;
               String resourceKey = null;
               Map searchMap = new HashMap();
               tcResultSet resultSet = null;
               RequestData requestData = null;
               Beneficiary beneficiary = null;
               RequestBeneficiaryEntity entity = null;
               List beneficiaryList = null;
               List entityList = null;
               List entityAttrList = null; 
    
               searchMap.put(RESOURCE_ATTR_NAME, RESOURCE);
               resultSet = _resourceService.findObjects(searchMap);
               resKey = resultSet.getLongValue(RESOURCE_ATTR_KEY);
               resourceKey = Long.toString(resKey);           
    
               RequestBeneficiaryEntityAttribute parantAttr = new RequestBeneficiaryEntityAttribute();
               parantAttr.setType(TYPE.String);
               parantAttr.setName("Title");
               parantAttr.setValue("Mr.");
    
               entityAttrList = new ArrayList();
               entityAttrList.add(parantAttr);
    
               entity = new RequestBeneficiaryEntity();
               entity.setEntityKey(resourceKey);
               entity.setEntityType(RequestConstants.RESOURCE);
               entity.setEntitySubType(RESOURCE);
               entity.setEntityData(entityAttrList);
    
                  entityList = new ArrayList();
               entityList.add(entity);
    
               beneficiary = new Beneficiary();
               beneficiary.setBeneficiaryType(Beneficiary.USER_BENEFICIARY);
               beneficiary.setBeneficiaryKey(USER_KEY);
               beneficiary.setTargetEntities(entityList);          
    
               requestData = new RequestData();
               requestData.setRequestTemplateName(TEMPLATE);
               requestData.setJustification("Test");
               requestData.setBeneficiaries(beneficiaryList);
    
               RequestService reqsrvc = client.getService(RequestService.class);           
    
               str = reqsrvc.submitRequest(requestData);
    
               System.out.println("Value from submitRequest : '" + (str != null ? str : null) + "'");
    

    Just a dummy code, but it's the overall structure. Once you have submitted the request and commissioning successful, you should see the data in the form of process.

    HTH,
    BB

    Edited to add the return code by: bbagaria on Sep 5, 2011 10:18

  • Question about Imguruploader?

    Hi guys.

    I read an article here: https://github.com/thurask/imguruploader

    When I upload an image that this error, the image below:

    https://PBS.twimg.com/Media/CjToDjUUYAQWXcW.jpg

    Help me, thanks

    Yes, just checked their docs for the API and the new version (3) now uses OAuth 2, project which Thurask did not. Their docs seems to have been updated at the beginning of April 2016, maybe it's when this new API became compulsory (there is often a period of transition before blocking the old API requests).

  • Libcurl/libxml2 segfault

    I have been working on a library for a while now (http://bbing.codeplex.com/) and that you actually want to release (officially). But I hit a few roadblocks. The remaining list of todos I have are:

    1. Make sure that it works
    2. Search for memory leaks
    3. Release

    He has the ability to define customized memory managers. Prior to their introduction, I had random segfaults. After their implementation. I still get random segfaults. I hope it's something that I've done, but whenever I get them, they are located in libcurl and libxml2.

    When I do #1, I get segfaults. When I do #2, I get segfaults.

    The source code is already high it there to see and check.

    Test code:

    bing_request_t request = NULL;
    bing_response_t response;
    bing_result_t* results;
    int c;
    int i;
    enum SOURCE_TYPE t;
    unsigned int bingID;
    
    bingID = create_bing("Bing app ID goes here!!");
    
    if(request_create_request(BING_SOURCETYPE_WEB, &request))
    {
        response = search_sync(bingID, "Bing API", request);
        if(response)
        {
            c = response_get_results(response, NULL);
            results = calloc(c, sizeof(bing_result_t));
            if(results)
            {
                response_get_results(response, results);
                for(i = 0; i < c; i++)
                {
                    t = result_get_source_type(results[i]);
                }
                free(results);
            }
            free_response(response);
        }
        free_request(request);
    }
    
    free_bing(bingID);
    

    Note: If you need an ID application to test Bing, PM me.

    You can run with default handlers (AKA, doing nothing, just compile), or you can try the "follow-up" to the memory managers by adding the "BING_MEM_TRACK" symbol to the project and compilation.

    When I use the memory of follow-up, errors generally occur in 'free_dbg_track' to the free call. The stack trace is usually along the lines of '..., curl_do, curl_http, curl_safefree, xml_curl_free, free_dbg_track, __free.

    As mentioned in the title, I also got when I try to release the context of the (search.c, search_cleanup) XML parser that has seems-like-a-fix, if the statement that can or should not cause a memory leak (do not know because I keep segfault-ing). For this stack trace is usually "..., xmlFreeParserCtxt, xmlFree, xml_curl_free, free_dbg_track, __free.

    Tested only on the device (rebooted a couple of times to free memory).

    This post seems to scatter brained and unorganized, but I can't seem to figure in any other way then put excuses from the outset for this. If you have any ideas, need more details (or Bing ID application, although it is free to do and to register [because you are even ready to approach Bing]), etc. Do not hesitate to ask.

    Yep, analysis of memory did the trick. He kept complaining about what I thought to be code perfectly well, but something must have been going wrong (somewhere) and it caused the random segfaults and strange behavior.

  • JQuery getJSON works in the BB browser, but no app compiled webworks

    Hey all,.

    I've been struggling with this for a couple of hours now, and I'm running out of things to try. I am very very very new to Javascript and WebWorks programming and this is my first app using both.

    Demand is reaching out to the weather underground API, and then analyzes the data to provide a view to tell me if I should put on my convertible top upwards or downwards according to the rules (on 65F, etc.).

    The application works in: Ripple, Chrome on my computer (Win 7 x 64 Enterprise), the browser, the browser Blackberry Playbook (BB 9930 w / OS 7.1) and when I compile it and deploy on the Simulator 9930 supplied with the SDK of webworks.

    When I use the 'package' option and sign waving and deploy it on my device however, it does not work. I was able to get into web Inspector and ends up getting the error message. Here it is (deleted API key):

    Could not load the resource: the server responded with a 504 (Gateway Timeout) status

    http://API.Wunderground.com/API/ /conditions/q/94523.json?callback=jQuery172041091463435441256_1338084703923&_=1338084727389

    I am able to visit the above URL in my web browser and the blackberry browser and it loads completely on both. It is a valid URL.

    My file config.xml looks like this:


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version = "0.0.0.9" >
        Convertible weather
        Erik Granlund
        A simple application for you to say if you should leave your top open or closed.
       
       
        
        
        
        
        
        
        
        
     

    Can someone help me to get to the bottom of this? I am really puzzled.

    Changed a few things, added a few functions.

    The Code

    index.html

    
    
    
        Convertible Weather
        
        
        
        
    
    
        

    Please select a city

    No Data!

    Open the menu, and press "Refresh Location"

    Weather.js

    /**
     * Global Variables
     */
    var zipCode = '94523';
    var town_name = '';
    var last_request = '';
    
    /**
     * Function that is called when the page is loaded
     */
    function initMenu() {
        //blackberry.ui.menu.clearMenuItems();
        //$('body').html('');
        var refreshButton = new blackberry.ui.menu.MenuItem( false, 1, "Refresh Forecast", getForecast );
        blackberry.ui.menu.addMenuItem(refreshButton);
    }
    
    /**
     * Get the weather forcast for five days including the specified date
     * @param zipCode - The zip code of the place we're looking to get a forcast from
     */
     function getForecast() {
        // Get the current conditions and store
        //alert( 'Starting first request...' );
        $.getJSON("http://api.wunderground.com/api/675353bbc88d6aad/conditions/q/94523.json?callback=?", function(data){
                //pull relevant data from the api, set vars
                    currentCondition = data.current_observation.weather;
                    currentTemp = data.current_observation.temp_f;
                    town_name = data.current_observation.display_location.full;
    
                //output header
                    $( "#header_text" ).html( 'Weather Forecast for ' + town_name);
    
                console.log(data); //test that data received
                var dD = $('#day_1');
                    dD.html('');//clear html
                    //dD.append(getDay()); // displays day on screen
                    dD.append(carPicture(currentTemp,currentCondition)); // display car
                    dD.append(formatForecast(getToday(),currentCondition,currentTemp)); //display conditions
    
                //dD.append('');
                //var nextDay = $('#nextDay'); // button to move to next day
                //nextDay.live('click',function(){
                    //alert('Tomorrow is: ' + getTomorrow());
                //});
                //$('#day_2 h1').html(getTomorrow() + '(Tomorrow)');
                //$('#day_2 p').html('Cannot predict the future...');
         });
    
     }
    
     /**
      * Format the forecast for output
      * @param dayName - full name for the day (Monday, Tuesday, etc.)
      * @param condition - the condition for the day (Partly cloudy, etc.)
      * @param temperature - the temperature for the day
      */
    
     // added new functions to get day
    
     function getToday(){
        d = new Date();
        n = d.getDay();
        dayName = '';
        //normalize current day from 0-6 to Sunday to Saturday equivalent
        switch(n){
            case 0: dayName = 'Sunday';break;
            case 1: dayName = 'Monday';break;
            case 2: dayName = 'Tuesday';break;
            case 3: dayName = 'Wednesday';break;
            case 4: dayName = 'Thursday';break;
            case 5: dayName = 'Friday';break;
            case 6: dayName = 'Saturday';break;
        }
        return dayName;
     }
    
     //tomorrow
      function getTomorrow(){
        d = new Date();
        n = d.getDay();//today +1 = tomorrow
        //if today is Saturday, set tomorrow to Sunday
        n = n+1; // increment day by 1
        tomorrow = '';
        //normalize current day from 0-6 to Sunday to Saturday equivalent
        switch(n){
            case 1: tomorrow = 'Monday';break;
            case 2: tomorrow = 'Tuesday';break;
            case 3: tomorrow = 'Wednesday';break;
            case 4: tomorrow = 'Thursday';break;
            case 5: tomorrow = 'Friday';break;
            case 6: tomorrow = 'Saturday';break;
            case 7: tomorrow = 'Sunday';break;
        }
        return tomorrow;
     }
    
     function formatForecast( dayName, condition, temperature ) {
    
        forecast =  '

    ' + dayName + '

    '; forecast += '

    ' + condition + ' at ' + temperature + 'F

    '; return forecast; } /** * Place the car picture based on the current temperature * @param temperature - the temperature of the day you need the car picture for * @param condition - the conditions predictide for the day you need the car picture for */ function carPicture( temperature, condition ) { temperature = parseFloat( temperature ); topdown = false; if( temperature >= 65 ) { topdown = true; } else { topdown = false; } if( topdown ) { return '' } else { return '' } } /** * Return a string for the API request depending on the features we need * @param feature - The feature name as defined by the Weather Underground API documentation @param zipcode - The zipcode of the place we're getting the weather for */ function generateAPIrequest(feature,zipCode) { api_key = '675353bbc88d6aad'; api_request = 'http://api.wunderground.com/api/' + api_key + '/' + feature + '/q/' + zipCode + '.json?callback=?'; return api_request; }

    Results

    In your initial code, you don't have a way to make the data on your screen. If you run this code, you should see that the data is loaded into the Simulator, then displaying the image correct vehicle based on the temperature and conditions.

    Deployment tests

    TEST #1: Smartphone deployment


    My hunch is that the API Wunderground is either blocking mobile devices by their user agent. I their message and ask about it.

    My experience is that it should work. Some of my apps make calls to the API without problem.

    So I decided to test the code to call this with a minor modification on the Playbook...

    Test #2: Deployment Playbook

    Packaging and deployment for the Playbook. A.

    (I edited the code to use a click on a button to run getForecast(), b/c Playbook is not "menus").

    [screenshot]

    What to do next?

    Send kazeo.com a message. Could be just a bug with their API and how it processes applications.

Maybe you are looking for

  • data in the deleted but table reappear when restart VI

    Hi all I make an oriented program data. the data is exported in a financial statement. When it's over, I clears the table and the graph to start again. the problem is when we reboot the VI, the old data will be apear return to the table, instead of a

  • Get an error: PCI. SYS - address F76130BF Base at F760C000, Datestamp 3b7d855C

    I had to repair windows XP home because of problems does not properly. Everything is well spent up to what I have turned off the PC & unplugged to replace the battery because she would not keep the time or date that the PC was unplugged. After that I

  • BlackBerry Z30 Q10 Link Switch Z30 question

    Hello world I recently took my Z30 currently Q10 so basically I crossed link blackberry and used the feature of switching device, I fly over all fine except the apps that flies over does not have the entire screen of the Z30, alone takes up the same

  • Print condensed

    HP C4280 All in printer performance.  Worked well to print until I upgraded to Snow Leopard. Now, the printer will print all documents in a format conddensed - about 3 "x 5" in the middle of the page - rather than fill the page normally. "  Is there

  • Connect a list to the bridge component

    HelloI have a question how can I connect a list element of bridge and the bridge component to select a button.Please tell me the solution for this.Thank you