GetStatusListCredential

Get VC status Credential

rpc GetStatusListCredential

registry_api.v1.GetStatusListCredential

Get VC status Credential

requests GetStatusListCredentialRequest

registry_api.v1.GetStatusListCredentialRequest

FieldTypeDescription
status_list_credential_idstringCredential Status List ID, e.g. “https://reg.YOUR_SANDBOX_URL.knoxnetworks.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx“
resp, _ := statusListRegistryService.GetStatusListCredential(ctx, &v1.GetStatusListCredentialRequest{
  StatusListCredentialId: "https://reg.YOUR_SANDBOX_URL.knoxnetworks.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
})
fmt.Println(resp)
const getstatuslistcredentialrequest = new GetStatusListCredentialRequest();
getstatuslistcredentialrequest.setStatusListCredentialId("https://reg.YOUR_SANDBOX_URL.knoxnetworks.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx");

service.getStatusListCredential(getstatuslistcredentialrequest, (err, value:GetStatusListCredentialResponse|null) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
using System;
using Grpc.Core;
using RegistryApi.V1;

namespace main
{
  class Program
  {
    static void Main(string[] args)
    {
      Channel channel = new Channel("stat-list-reg.YOUR_SANDBOX_ID.knoxnetworks.io:443", ChannelCredentials.Insecure); 
      var client = new StatusListRegistryService.StatusListRegistryServiceClient(channel); 
      var headers = new Metadata();
      var getStatusListCredentialRequest = new GetStatusListCredentialRequest{
        StatusListCredentialId = "https://reg.YOUR_SANDBOX_URL.knoxnetworks.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      };
      var reply = client.GetStatusListCredential(getStatusListCredentialRequest, headers);
      Console.WriteLine("Response: " + reply);
      channel.ShutdownAsync().Wait();
    }
  }
}
package demo;

import io.grpc.Channel;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import registry_api.v1.Registry.GetStatusListCredentialRequest;
import registry_api.v1.Registry.GetStatusListCredentialResponse;
import registry_api.v1.StatusListRegistryServiceGrpc;

public class App {
  public static void main(String[] args) {
    ManagedChannel channel = ManagedChannelBuilder
      .forAddress("stat-list-reg.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
      .usePlaintext()
      .build();
    StatusListRegistryServiceGrpc.StatusListRegistryServiceBlockingStub blockStub =
        StatusListRegistryServiceGrpc.newBlockingStub(channel);
    
    GetStatusListCredentialRequest req_GetStatusListCredentialRequest =
        GetStatusListCredentialRequest.newBuilder()
          .setStatusListCredentialId("https://reg.YOUR_SANDBOX_URL.knoxnetworks.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
          .build();
    GetStatusListCredentialResponse resp = blockStub.getStatusListCredential(req_GetStatusListCredentialRequest);
    System.out.println(resp);
    channel.shutdown();
  }
}
const getstatuslistcredentialrequest = new GetStatusListCredentialRequest();
getstatuslistcredentialrequest.setStatusListCredentialId("https://reg.YOUR_SANDBOX_URL.knoxnetworks.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx");

service.getStatusListCredential(getstatuslistcredentialrequest, (err, value) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
extern crate grpc-sdks;
use tonic::transport::Channel;

use grpc-sdks::registry_api::v1::status_list_registry_service_client::StatusListRegistryServiceClient;
use grpc-sdks::registry_api::v1::GetStatusListCredentialRequest;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
  let channel = Channel::from_static("stat-list-reg.YOUR_SANDBOX_ID.knoxnetworks.io")
    .connect()
    .await?;
  let mut client = StatusListRegistryServiceClient::new(channel); 

  let request = tonic::Request::new(
    GetStatusListCredentialRequest{
      status_list_credential_id: String::from("https://reg.YOUR_SANDBOX_URL.knoxnetworks.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
    });
// sending request and waiting for response
  let response = client.get_status_list_credential(request).await?.into_inner();
  println!("RESPONSE={:?}", response);
  Ok(())
}
package app

import io.grpc.ManagedChannelBuilder
import registry_api.v1.Registry.GetStatusListCredentialRequest
import registry_api.v1.Registry.GetStatusListCredentialResponse
import registry_api.v1.StatusListRegistryServiceGrpc

fun main() {
    val channel = ManagedChannelBuilder
            .forAddress("stat-list-reg.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
            .usePlaintext()
            .build()
    var blockStub = StatusListRegistryServiceGrpc.newBlockingStub(channel)
    
    val req_GetStatusListCredentialRequest = GetStatusListCredentialRequest.newBuilder()
          .setStatusListCredentialId("https://reg.YOUR_SANDBOX_URL.knoxnetworks.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
          .build()
    val resp = blockStub.getStatusListCredential(req_GetStatusListCredentialRequest)
    println(resp)
    channel.shutdown()
}


returns GetStatusListCredentialResponse

registry_api.v1.GetStatusListCredentialResponse

FieldTypeDescription
status_list_credentialstringUnique ID of StatusListCredential.
{
  "status_list_credential": "STATUS_LIST_CREDENTIAL"
}